Skip to content

Instantly share code, notes, and snippets.

@rehrumesh
Created July 5, 2020 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rehrumesh/457c916b00c799d26a93fc9011597cd9 to your computer and use it in GitHub Desktop.
Save rehrumesh/457c916b00c799d26a93fc9011597cd9 to your computer and use it in GitHub Desktop.
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