forked from maximilian-lindsey/showcar-icons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.conf.js
39 lines (38 loc) · 1.07 KB
/
webpack.conf.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
module.exports = (function() {
var path = require('path');
var webpackPlugin = require('webpack');
return {
cache: true,
devtool: 'source-map',
entry: './src/icons.js',
failOnError: true,
module: {
loaders: [
{
test: /.*\.svg$/,
loaders: [
'raw-loader',
'svgo-loader?' + JSON.stringify({
plugins: [
{removeTitle: true},
{removeDimensions: true}
]
})
]
}
]
},
output: {filename: "./dist/showcar-icons.min.js"},
plugins: [
new webpackPlugin.optimize.DedupePlugin(),
new webpackPlugin.optimize.UglifyJsPlugin()
],
progress: false,
stats: {
colors: true,
reasons: false,
modules: false
},
watch: true
};
})();