rm jquery

This commit is contained in:
Pan
2017-08-21 20:24:02 +08:00
parent 9768305166
commit aa5f9059b3
9 changed files with 1 additions and 20 deletions

View File

@@ -35,9 +35,6 @@ module.exports = {
'static': path.resolve(__dirname, '../static')
}
},
externals: {
jquery: 'jQuery'
},
module: {
rules: [
// {

View File

@@ -29,10 +29,6 @@ module.exports = merge(baseWebpackConfig, {
new webpack.DefinePlugin({
'process.env': config.dev.env
}),
new webpack.ProvidePlugin({
$: 'jquery',
'jQuery': 'jquery'
}),
// https://github.com/glenjamin/webpack-hot-middleware#installation--usage
new webpack.HotModuleReplacementPlugin(),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -106,11 +106,7 @@ var webpackConfig = merge(baseWebpackConfig, {
from: path.resolve(__dirname, '../static'),
to: config.build.assetsSubDirectory,
ignore: ['.*']
}]),
new webpack.ProvidePlugin({
$: 'jquery',
'jQuery': 'jquery'
})
}])
]
})
if (config.build.bundleAnalyzerReport) {