Commit e43099e4 authored by Mike Greiling's avatar Mike Greiling

replace stats-webpack-plugin with webpack-stats-plugin

parent 1e207e8a
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
var fs = require('fs'); var fs = require('fs');
var path = require('path'); var path = require('path');
var webpack = require('webpack'); var webpack = require('webpack');
var StatsPlugin = require('stats-webpack-plugin'); var StatsWriterPlugin = require('webpack-stats-plugin').StatsWriterPlugin;
var CompressionPlugin = require('compression-webpack-plugin'); var CompressionPlugin = require('compression-webpack-plugin');
var NameAllModulesPlugin = require('name-all-modules-plugin'); var NameAllModulesPlugin = require('name-all-modules-plugin');
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
...@@ -127,12 +127,18 @@ var config = { ...@@ -127,12 +127,18 @@ var config = {
plugins: [ plugins: [
// manifest filename must match config.webpack.manifest_filename // manifest filename must match config.webpack.manifest_filename
// webpack-rails only needs assetsByChunkName to function properly // webpack-rails only needs assetsByChunkName to function properly
new StatsPlugin('manifest.json', { new StatsWriterPlugin({
chunkModules: false, filename: 'manifest.json',
source: false, transform: function(data, opts) {
chunks: false, var stats = opts.compiler.getStats().toJson({
modules: false, chunkModules: false,
assets: true source: false,
chunks: false,
modules: false,
assets: true
});
return JSON.stringify(stats, null, 2);
}
}), }),
// prevent pikaday from including moment.js // prevent pikaday from including moment.js
......
...@@ -5259,10 +5259,6 @@ sshpk@^1.7.0: ...@@ -5259,10 +5259,6 @@ sshpk@^1.7.0:
jsbn "~0.1.0" jsbn "~0.1.0"
tweetnacl "~0.14.0" tweetnacl "~0.14.0"
stats-webpack-plugin@^0.4.3:
version "0.4.3"
resolved "https://registry.yarnpkg.com/stats-webpack-plugin/-/stats-webpack-plugin-0.4.3.tgz#b2f618202f28dd04ab47d7ecf54ab846137b7aea"
"statuses@>= 1.3.1 < 2", statuses@~1.3.1: "statuses@>= 1.3.1 < 2", statuses@~1.3.1:
version "1.3.1" version "1.3.1"
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e" resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e"
...@@ -5845,6 +5841,10 @@ webpack-sources@^0.2.3: ...@@ -5845,6 +5841,10 @@ webpack-sources@^0.2.3:
source-list-map "^1.1.1" source-list-map "^1.1.1"
source-map "~0.5.3" source-map "~0.5.3"
webpack-stats-plugin@^0.1.5:
version "0.1.5"
resolved "https://registry.yarnpkg.com/webpack-stats-plugin/-/webpack-stats-plugin-0.1.5.tgz#29e5f12ebfd53158d31d656a113ac1f7b86179d9"
webpack@^2.6.1: webpack@^2.6.1:
version "2.6.1" version "2.6.1"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-2.6.1.tgz#2e0457f0abb1ac5df3ab106c69c672f236785f07" resolved "https://registry.yarnpkg.com/webpack/-/webpack-2.6.1.tgz#2e0457f0abb1ac5df3ab106c69c672f236785f07"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment