Browse Source

Avoid import moment locales

pull/39/head
afc163 9 years ago
parent
commit
1ae2d59c1b
  1. 7
      webpack.config.js

7
webpack.config.js

@ -0,0 +1,7 @@
const webpack = require('webpack');
module.exports = (webpackConfig) => {
// Avoid import all locale file of moment
webpackConfig.plugins.push(new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/));
return webpackConfig;
};
Loading…
Cancel
Save