-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
33 lines (32 loc) · 968 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
var webpack = require('webpack'),
nodeModulesPath = '/node_modules/';
module.exports = {
entry: "./src/js/app.js",
output: {
filename: "js/bundle.js",
path: './site'
},
//devtool: 'source-map',
module: {
loaders: [
{test: /\.css$/, loader: 'style!css!', exclude: nodeModulesPath},
{test: /\.less$/, loader: 'style!css!less!', exclude: nodeModulesPath},
{test: /\.png$/, loader: 'url', exclude: nodeModulesPath},
{test: /\.html$/, loader: 'html', exclude: nodeModulesPath},
{
test: /\.(ttf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
loader: 'file-loader',
exclude: nodeModulesPath
}
]
},
plugins: [
new webpack.ProvidePlugin({
"_": "lodash",
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery"
})
]
//watch: true
};