module.exports = {
context: __dirname + "/web/js/",
entry: {
"full": full,
"light": light
},
output: {
path: __dirname + "/web/js/",
filename: "[name].js"
},
resolve: {
alias: resolves
},
library: 'client',
plugins: [
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery'
})
]
};
define('jquery', [], function(){
return window.$;
});
module.exports = [
{
...
plugins: [
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery'
})
]
},
{
...
plugins: [
new webpack.ProvidePlugin({
$: __dirname + '/web/js/jqueryStub',
jQuery: __dirname + '/web/js/jqueryStub'
})
]
}
];