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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
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 |
|
|
|
} |
|
|
|