66 * Copyright 2011-2016 Digital Bazaar, Inc.
77 */
88const path = require ( 'path' ) ;
9- const webpack = require ( 'webpack' ) ;
109
1110// build multiple outputs
1211module . exports = [ ] ;
@@ -79,6 +78,7 @@ outputs.forEach(info => {
7978
8079 // plain unoptimized unminified bundle
8180 const bundle = Object . assign ( { } , common , {
81+ mode : 'development' ,
8282 output : {
8383 path : path . join ( __dirname , 'dist' ) ,
8484 filename : info . filenameBase + '.js' ,
@@ -95,6 +95,7 @@ outputs.forEach(info => {
9595
9696 // optimized and minified bundle
9797 const minify = Object . assign ( { } , common , {
98+ mode : 'production' ,
9899 output : {
99100 path : path . join ( __dirname , 'dist' ) ,
100101 filename : info . filenameBase + '.min.js' ,
@@ -103,6 +104,7 @@ outputs.forEach(info => {
103104 } ,
104105 devtool : 'cheap-module-source-map' ,
105106 plugins : [
107+ /*
106108 new webpack.optimize.UglifyJsPlugin({
107109 sourceMap: true,
108110 compress: {
@@ -113,6 +115,7 @@ outputs.forEach(info => {
113115 }
114116 //beautify: true
115117 })
118+ */
116119 ]
117120 } ) ;
118121 if ( info . library === null ) {
0 commit comments