aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.d
diff options
context:
space:
mode:
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
- }
- }
- })
- ]
- }
-
-}