aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.d
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-08-22 02:29:28 +0200
committerRobert Jaros <rjaros@finn.pl>2018-08-22 02:29:28 +0200
commit1d86be75d10f3d5330776f6bab090d14dd1aa3a0 (patch)
tree0266a496486a78e50a1a0119f653680174176541 /webpack.config.d
parentdb000e6176e6e49a6a3f6b50ddbb8f0e5ae771a1 (diff)
downloadkvision-1d86be75d10f3d5330776f6bab090d14dd1aa3a0.tar.gz
kvision-1d86be75d10f3d5330776f6bab090d14dd1aa3a0.tar.bz2
kvision-1d86be75d10f3d5330776f6bab090d14dd1aa3a0.zip
I18n fixes for modal components.
Diffstat (limited to 'webpack.config.d')
-rw-r--r--webpack.config.d/jed.js3
-rw-r--r--webpack.config.d/jquery.js3
-rw-r--r--webpack.config.d/minify.js16
3 files changed, 5 insertions, 17 deletions
diff --git a/webpack.config.d/jed.js b/webpack.config.d/jed.js
new file mode 100644
index 00000000..a6d18464
--- /dev/null
+++ b/webpack.config.d/jed.js
@@ -0,0 +1,3 @@
+config.plugins.push(new webpack.ProvidePlugin({
+ Jed: "jed"
+}));
diff --git a/webpack.config.d/jquery.js b/webpack.config.d/jquery.js
index 40522595..bf5a1a20 100644
--- a/webpack.config.d/jquery.js
+++ b/webpack.config.d/jquery.js
@@ -1,4 +1,5 @@
config.plugins.push(new webpack.ProvidePlugin({
$: "jquery",
- jQuery: "jquery"
+ jQuery: "jquery",
+ "window.jQuery": "jquery"
}));
diff --git a/webpack.config.d/minify.js b/webpack.config.d/minify.js
deleted file mode 100644
index d85c861c..00000000
--- a/webpack.config.d/minify.js
+++ /dev/null
@@ -1,16 +0,0 @@
-if (defined.PRODUCTION) {
- const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
-
- config.optimization = {
- minimizer: [
- new UglifyJSPlugin({
- uglifyOptions: {
- compress: {
- unused: false
- }
- }
- })
- ]
- }
-
-}