aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.d
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2017-08-16 01:58:43 +0200
committerRobert Jaros <rjaros@finn.pl>2017-08-16 01:58:43 +0200
commite1523ed62e16b6ecfde1a1d6dd69599910c7085a (patch)
tree60dd83080664e8fae218d68e488eb708bf121da3 /webpack.config.d
downloadkvision-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.js2
-rw-r--r--webpack.config.d/minify.js5
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
+ }));
+}