-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebpack.config.js
51 lines (41 loc) · 1009 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* @author fbielejec
*/
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var path = require('path');
module.exports = {
entry: "./src/main.js", // APP_PATH
output: {
filename: 'main.js',
path: path.resolve('./dist') // BUILD_PATH
},
module: {
loaders: [
{
test: /\.css$/,
loader: 'style-loader!css-loader'
},
{
test: /\.png$/,
loader: 'url-loader?limit=10000'
}
]
},
resolve: {
modulesDirectories: ['node_modules']
},
plugins: [
new HtmlWebpackPlugin({
title: "SpreaD3"
}),
// new webpack.ProvidePlugin({
// 'Promise': 'es6-promise'//, // Thanks Aaron (https://gist.github.com/Couto/b29676dd1ab8714a818f#gistcomment-1584602)
// // 'fetch': 'imports?this=>global!exports?global.fetch!whatwg-fetch'
// }),
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
})
]
};