Skip to content

Instantly share code, notes, and snippets.

@shelldandy
Created April 2, 2018 14:54
Show Gist options
  • Select an option

  • Save shelldandy/2efca1a411404388e6ecf73fccb8b772 to your computer and use it in GitHub Desktop.

Select an option

Save shelldandy/2efca1a411404388e6ecf73fccb8b772 to your computer and use it in GitHub Desktop.

Revisions

  1. shelldandy created this gist Apr 2, 2018.
    15 changes: 15 additions & 0 deletions webpack.config.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    {
    // ...
    optimization: {
    splitChunks: {
    cacheGroups: {
    commons: {
    test: /[\\/]node_modules[\\/]/,
    name: 'vendor',
    chunks: 'initial',
    },
    },
    },
    }
    // ...
    }