Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing support for Webpack 5.0 filename being a function #117

Open
Nya-chan opened this issue Mar 2, 2023 · 0 comments
Open

Missing support for Webpack 5.0 filename being a function #117

Nya-chan opened this issue Mar 2, 2023 · 0 comments

Comments

@Nya-chan
Copy link

Nya-chan commented Mar 2, 2023

In WP5 you can now use functions for file output path (see https://webpack.js.org/configuration/output/#outputfilename , can also be used in MiniCssExtractPlugin and others)
The plugin currently only supports filename being a string / with a template and fails on providing a correct function that returns a string with such filename:

/node_modules/media-query-plugin/src/plugin.js:83
                                        .replace('[name]', mediaKey)
                                         ^

TypeError: this.options.filename.replace is not a function
    at /frontend/node_modules/media-query-plugin/src/plugin.js:83:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant