Skip to content

Commit

Permalink
added stats back
Browse files Browse the repository at this point in the history
  • Loading branch information
ali1k committed Apr 12, 2018
1 parent 6149218 commit 49bd060
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linked-data-reactor",
"version": "1.2.1",
"version": "1.2.2",
"description": "Linked Data Reactor helps to create flexible and adaptive Linked Data user interfaces.",
"private": false,
"repository": {
Expand Down
13 changes: 12 additions & 1 deletion webpack/prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ let path = require('path');
//plugins
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const StatsWriterPlugin = require('webpack-stats-plugin').StatsWriterPlugin;
const Visualizer = require('webpack-visualizer-plugin');

let webpackConfig = {
mode: 'production',
Expand Down Expand Up @@ -78,7 +80,16 @@ let webpackConfig = {
NODE_ENV: JSON.stringify('production'),
BROWSER: JSON.stringify('true')
}
})
}),
// Write out stats file to build directory.
new StatsWriterPlugin({
filename: 'webpack.stats.json', // Default
fields: null,
transform: function (data) {
return JSON.stringify(data, null, 2);
}
}),
new Visualizer()
],
stats: {
colors: true,
Expand Down

0 comments on commit 49bd060

Please sign in to comment.