6
6
* Copyright 2011-2016 Digital Bazaar, Inc.
7
7
*/
8
8
const path = require ( 'path' ) ;
9
- const webpack = require ( 'webpack' ) ;
10
9
11
10
// build multiple outputs
12
11
module . exports = [ ] ;
@@ -79,6 +78,7 @@ outputs.forEach(info => {
79
78
80
79
// plain unoptimized unminified bundle
81
80
const bundle = Object . assign ( { } , common , {
81
+ mode : 'development' ,
82
82
output : {
83
83
path : path . join ( __dirname , 'dist' ) ,
84
84
filename : info . filenameBase + '.js' ,
@@ -95,6 +95,7 @@ outputs.forEach(info => {
95
95
96
96
// optimized and minified bundle
97
97
const minify = Object . assign ( { } , common , {
98
+ mode : 'production' ,
98
99
output : {
99
100
path : path . join ( __dirname , 'dist' ) ,
100
101
filename : info . filenameBase + '.min.js' ,
@@ -103,6 +104,7 @@ outputs.forEach(info => {
103
104
} ,
104
105
devtool : 'cheap-module-source-map' ,
105
106
plugins : [
107
+ /*
106
108
new webpack.optimize.UglifyJsPlugin({
107
109
sourceMap: true,
108
110
compress: {
@@ -113,6 +115,7 @@ outputs.forEach(info => {
113
115
}
114
116
//beautify: true
115
117
})
118
+ */
116
119
]
117
120
} ) ;
118
121
if ( info . library === null ) {
0 commit comments