|
|
|
@ -39,7 +39,7 @@ var ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); |
|
|
|
|
var HappyPack = require('happypack'); |
|
|
|
|
var ExtractTextPlugin = require('extract-text-webpack-plugin'); |
|
|
|
|
var CleanWebpackPlugin = require('clean-webpack-plugin'); |
|
|
|
|
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; |
|
|
|
|
// var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
|
|
|
|
|
|
|
|
|
var mode = (process.env['RAILS_ENV'] || 'production').toLowerCase(); |
|
|
|
|
var production = (mode !== 'development'); |
|
|
|
@ -289,8 +289,8 @@ function getWebpackMainConfig() { |
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
// Restrict loaded moment locales to the ones we load from translations
|
|
|
|
|
new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, new RegExp('(' + localeIds.join('|') + ')\.js$', 'i')), |
|
|
|
|
new BundleAnalyzerPlugin() |
|
|
|
|
new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, new RegExp('(' + localeIds.join('|') + ')\.js$', 'i')) |
|
|
|
|
// new BundleAnalyzerPlugin()
|
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|