Force AngularJS to use jQuery.
This commit is contained in:
parent
6556227f88
commit
2fb98fdeed
@ -1,6 +1,7 @@
|
|||||||
/* jshint esversion: 6 */
|
/* jshint esversion: 6 */
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
|
const webpack = require('webpack');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
context: path.resolve(__dirname, 'src'),
|
context: path.resolve(__dirname, 'src'),
|
||||||
@ -82,6 +83,9 @@ module.exports = {
|
|||||||
title: 'Accountant',
|
title: 'Accountant',
|
||||||
template: 'index.ejs'
|
template: 'index.ejs'
|
||||||
}),
|
}),
|
||||||
|
new webpack.ProvidePlugin({
|
||||||
|
"window.jQuery": "jquery"
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'build'),
|
path: path.resolve(__dirname, 'build'),
|
||||||
|
Loading…
Reference in New Issue
Block a user