webpack.config.js 229 Bytes
Newer Older
afc163's avatar
afc163 committed
1 2 3 4 5 6 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;
};