Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
fix(webpack.prod.js): comment moduleconcatenationplugin, small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Metnew committed Jul 13, 2017
1 parent 7090f2f commit 7cfa1de
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions webpack_config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,14 @@ base.plugins.push(
filename: '[name].[chunkhash:8].css',
allChunks: true
}),
new webpack.optimize.ModuleConcatenationPlugin(),
// NOTE: ModuleConcatenationPlugin doesn't work on linux alpine,
// I got an error trying to deploy this app to zeit's `now` when i use this plugin
// new webpack.optimize.ModuleConcatenationPlugin(),
new ShakePlugin(),
new OptimizeCssAssetsPlugin(),
// NOTE: Prepack currently in alpha, be carefull with it
// new PrepackWebpackPlugin(),
//
//
// extract vendor chunks
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
Expand Down Expand Up @@ -131,7 +133,7 @@ base.plugins.push(
windows: true
}
}),
// NOTE: temporarily comment babiliplugin, because it breaks build on Linux Alpine
// NOTE: you can use BabiliPlugin as alternative to UglifyJSPlugin
// new BabiliPlugin(),
new UglifyJSPlugin({
sourceMap: true,
Expand All @@ -151,6 +153,7 @@ base.plugins.push(
new ManifestPlugin({fileName: 'manifest.json', cache: config.manifest}),
// AppCache + ServiceWorkers
new OfflinePlugin({
responseStrategy: 'network-first',
safeToUseOptionalCaches: true,
caches: {
main: ['vendor.*.css', 'vendor.*.js'],
Expand All @@ -177,14 +180,17 @@ base.plugins.push(

// minimize webpack output
base.stats = {
colors: true,
// Add children information
children: false,
// Add chunk information (setting this to `false` allows for a less verbose output)
chunks: false,
// Add built modules information to chunk information
chunkModules: false,
chunkOrigins: false,
modules: false
modules: false,
reasons: true,
errorDetails: true
}

const builds = Object.keys(languages).map(language => {
Expand Down

0 comments on commit 7cfa1de

Please sign in to comment.