0

Today I'm using webpack_get_script_filename to rewrite the chunk filenames at runtime. This works great for JS files, but it doesn't apply to CSS chunks created with mini-css-extract-plugin . I need to be able to change the css chunk filenames at runtime the same way I'm already changing the JS files.

See (https://webpack.js.org/api/module-variables/#__webpack_get_script_filename__-webpack-specific) for more details about how this works for scripts.

I'm just not sure how to get it to work with mini-css-extract-plugin. Whether it is a change in the webpack config, or whether there's some change needed in the mini-css-extract-plugin config.

I was expecting webpack_get_script_filename to meet my needs here but it was only triggering for scripts, not styles.

0 Answers0