Skip to content

Commit

Permalink
closes #118
Browse files Browse the repository at this point in the history
  • Loading branch information
g-harel committed Jan 13, 2018
1 parent 612a4f5 commit ea3e8e6
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/lite.min.js

Large diffs are not rendered by default.

Binary file modified dist/lite.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/server.min.js

Large diffs are not rendered by default.

Binary file modified dist/server.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/standard.min.js

Large diffs are not rendered by default.

Binary file modified dist/standard.min.js.gz
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -53,6 +53,7 @@
"jest": "^22.0.5",
"jest-serializer-html-string": "^1.0.1",
"npm-run-all": "^4.1.2",
"prepack-webpack-plugin": "^1.1.0",
"uglifyjs-webpack-plugin": "^1.1.6",
"webpack": "^3.10.0"
},
Expand Down
4 changes: 3 additions & 1 deletion webpack.config.js
@@ -1,7 +1,8 @@
'use strict';

const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const CompressionPlugin = require('compression-webpack-plugin');
const PrepackPlugin = require('prepack-webpack-plugin').default;
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');

const kit = (name) => ([
{
Expand Down Expand Up @@ -29,6 +30,7 @@ const bundles = [
module.exports = bundles.map((options) => {
const plugins = [];
if (options.minified) {
plugins.push(new PrepackPlugin({}));
plugins.push(new UglifyJSPlugin());
}
if (options.gzipped) {
Expand Down

0 comments on commit ea3e8e6

Please sign in to comment.