Browse Source

Merge pull request #473 from mrfelton/perf/moment-locale

Do not bundle moment locale data data that we don't use
renovate/lint-staged-8.x
Ben Woosley 7 years ago
committed by GitHub
parent
commit
6d9e118bfa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      webpack.config.base.js

3
webpack.config.base.js

@ -3,6 +3,7 @@
*/
import path from 'path'
import { IgnorePlugin } from 'webpack'
import { dependencies as externals } from './app/package.json'
export default {
@ -38,6 +39,8 @@ export default {
modules: [path.join(__dirname, 'app'), 'node_modules']
},
plugins: [new IgnorePlugin(/^\.\/locale$/, /moment$/)],
optimization: {
namedModules: true
}

Loading…
Cancel
Save