Upgrade webpack

This commit is contained in:
Jaco Greeff
2017-07-26 12:08:34 +02:00
parent decc5922de
commit 09e40c2f0d
3 changed files with 189 additions and 207 deletions

View File

@@ -17,7 +17,7 @@
const webpack = require('webpack');
const path = require('path');
const ReactIntlAggregatePlugin = require('react-intl-aggregate-webpack-plugin');
// const ReactIntlAggregatePlugin = require('react-intl-aggregate-webpack-plugin');
const WebpackErrorNotificationPlugin = require('webpack-error-notification');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
@@ -245,11 +245,11 @@ module.exports = {
const DEST_I18N = path.join(__dirname, '..', DEST, 'i18n');
plugins.push(
new ReactIntlAggregatePlugin({
messagesPattern: DEST_I18N + '/i18n/**/*.json',
aggregateOutputDir: DEST_I18N + '/i18n/',
aggregateFilename: 'en'
}),
// new ReactIntlAggregatePlugin({
// messagesPattern: DEST_I18N + '/i18n/**/*.json',
// aggregateOutputDir: DEST_I18N + '/i18n/',
// aggregateFilename: 'en'
// }),
new webpack.optimize.CommonsChunkPlugin({
filename: 'commons.[hash:10].js',