From 2fb98fdeed4212086ed294d762f373b8a77e89c9 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 7 Jul 2017 01:16:49 +0200 Subject: [PATCH] Force AngularJS to use jQuery. --- webpack.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 18bfa37..6323694 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,7 @@ /* jshint esversion: 6 */ const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); +const webpack = require('webpack'); module.exports = { context: path.resolve(__dirname, 'src'), @@ -82,6 +83,9 @@ module.exports = { title: 'Accountant', template: 'index.ejs' }), + new webpack.ProvidePlugin({ + "window.jQuery": "jquery" + }), ], output: { path: path.resolve(__dirname, 'build'),