Browse Source

#34: inject jQuery also on production

Davide Alberani 4 years ago
parent
commit
4269b22a60
1 changed files with 6 additions and 0 deletions
  1. 6 0
      build/webpack.prod.conf.js

+ 6 - 0
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