-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
39 lines (32 loc) · 893 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
'use strict';
module.exports = {
context: __dirname + '/app',
output: {
path: __dirname + '/dist',
filename: '[name].js'
},
cache: true,
entry: {
background: './background.js',
content: './content.js'
},
stats: {
colors: true,
reasons: true
},
module: {
preLoaders: [{
test: '\\.js$',
exclude: 'node_modules',
loader: 'jshint'
}],
loaders: [
{ test: /\.css$/, loader: 'style!css' },
{ test: /\.svg$/, loader: "url?prefix=img/&limit=5000&mimetype=image/svg+xml" },
{ test: /\.gif/, loader: 'url-loader?limit=10000&minetype=image/gif' },
{ test: /\.jpg/, loader: 'url-loader?limit=10000&minetype=image/jpg' },
{ test: /\.png/, loader: 'url-loader?limit=10000&minetype=image/png' },
{ test: /\.jsx$/, loader: 'jsx-loader'}
]
}
};