Created
April 17, 2021 13:44
-
-
Save AbhiAgarwal192/49782bc3ef63898f8bf5c7f110afb16f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
webpack: (config, env) => { | |
config.optimization.runtimeChunk = false; | |
config.optimization.splitChunks = { | |
cacheGroups: { | |
default: false, | |
}, | |
}; | |
config.output.filename = "static/js/[name].js"; | |
config.plugins[5].options.filename = "static/css/[name].css"; | |
config.plugins[5].options.moduleFilename = () => "static/css/main.css"; | |
return config; | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment