diff options
author | Robert Jaros <rjaros@finn.pl> | 2017-08-16 01:58:43 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2017-08-16 01:58:43 +0200 |
commit | e1523ed62e16b6ecfde1a1d6dd69599910c7085a (patch) | |
tree | 60dd83080664e8fae218d68e488eb708bf121da3 /webpack.config.d | |
download | kvision-e1523ed62e16b6ecfde1a1d6dd69599910c7085a.tar.gz kvision-e1523ed62e16b6ecfde1a1d6dd69599910c7085a.tar.bz2 kvision-e1523ed62e16b6ecfde1a1d6dd69599910c7085a.zip |
Initial commit
Diffstat (limited to 'webpack.config.d')
-rw-r--r-- | webpack.config.d/css.js | 2 | ||||
-rw-r--r-- | webpack.config.d/minify.js | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/webpack.config.d/css.js b/webpack.config.d/css.js new file mode 100644 index 00000000..2b43a825 --- /dev/null +++ b/webpack.config.d/css.js @@ -0,0 +1,2 @@ +config.module.rules.push({ test: /\.css$/, loader: "style!css" }); + diff --git a/webpack.config.d/minify.js b/webpack.config.d/minify.js new file mode 100644 index 00000000..3bc8e884 --- /dev/null +++ b/webpack.config.d/minify.js @@ -0,0 +1,5 @@ +if (defined.PRODUCTION) { + config.plugins.push(new webpack.optimize.UglifyJsPlugin({ + minimize: true + })); +} |