#34: inject jQuery also on production
This commit is contained in:
parent
572dd19d00
commit
4269b22a60
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue