From 4269b22a607afa801d7662fa6e487f18a2b0f690 Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Mon, 13 Mar 2017 21:37:35 +0100 Subject: [PATCH] #34: inject jQuery also on production --- build/webpack.prod.conf.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index 07796da..1b0674d 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -29,6 +29,12 @@ var webpackConfig = merge(baseWebpackConfig, { new webpack.DefinePlugin({ 'process.env': env }), + new webpack.ProvidePlugin({ + $: 'jquery', + jquery: 'jquery', + 'window.jQuery': 'jquery', + jQuery: 'jquery' + }), new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false