Skip to content

Instantly share code, notes, and snippets.

@AbhiAgarwal192
Created April 17, 2021 13:44
Show Gist options
  • Select an option

  • Save AbhiAgarwal192/49782bc3ef63898f8bf5c7f110afb16f to your computer and use it in GitHub Desktop.

Select an option

Save AbhiAgarwal192/49782bc3ef63898f8bf5c7f110afb16f to your computer and use it in GitHub Desktop.

Revisions

  1. AbhiAgarwal192 created this gist Apr 17, 2021.
    16 changes: 16 additions & 0 deletions config-overrides.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    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;
    },
    };