Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

support asset modules with generator #337

Closed

Conversation

hanzhangyu
Copy link

add generator config to custom asset filename will throw UnhandledPromiseRejectionWarning: TypeError: config.module.rule(...).test(...).type(...).generator is not a function

config.modules
    .rule('fonts')
    .test(/\.tff$/)
    .type('asset')
    .generator({
      filename: 'fonts/[hash][ext][query]',
    })
    .parser({
      dataUrlCondition: {
        maxSize: 4 * 1024,
      },
    });

@hanzhangyu hanzhangyu changed the title support asset modules with generator and parser support asset modules with generator Jun 24, 2022
@UNDERCOVERj
Copy link

why nobody reviews

@edmorley
Copy link
Member

edmorley commented Feb 3, 2024

Closing since this project is no longer maintained:
#358

@edmorley edmorley closed this Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants