UNPKG
kef-builder-buffet
Version:
latest (0.1.0)
0.1.0
buffet-builder构建工具
kef-builder-buffet
/
webpack
/
cfg
/
uglify.js
17 lines
(13 loc)
•
289 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'use strict'
;
var
webpack =
require
(
'webpack'
);
module
.
exports
=
function
(
config
){ config.
plugins
= config.
plugins
|| []; config.
plugins
.
push
(
new
webpack.
optimize
.
UglifyJsPlugin
({
output
: {
comments
:
false
},
compress
: {
drop_console
:
true
} })); };