Przeglądaj źródła

#34: inject jQuery also on production

Davide Alberani 7 lat temu
rodzic
commit
4269b22a60
1 zmienionych plików z 6 dodań i 0 usunięć
  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