Once Webpack 5 is supported we should update our module.exports to use splitChunks to extract styles into CSS files after verifying this feature works as expected. This will improve performance and simplify code. Also, this is the recommended way from mini-css-extract-plugin.
Related To https://github.com/WebDevStudios/wds-block-starter/pulls
Once Webpack 5 is supported we should update our
module.exports
to use splitChunks to extract styles into CSS files after verifying this feature works as expected. This will improve performance and simplify code. Also, this is the recommended way frommini-css-extract-plugin
.Example code to add ( may need modified ).