Skip to content

Commit ba13a1c

Browse files
committed
Update webpack.
1 parent c8d5395 commit ba13a1c

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

karma.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ module.exports = function(config) {
5555
},
5656

5757
webpack: {
58+
mode: 'development',
5859
devtool: 'inline-source-map',
5960
node: {
6061
Buffer: false,

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"nodejs-websocket": "^1.7.1",
4040
"nyc": "^15.0.0",
4141
"opts": "^1.2.7",
42-
"webpack": "^3.11.0",
42+
"webpack": "^4.41.6",
43+
"webpack-cli": "^3.3.11",
4344
"worker-loader": "^2.0.0"
4445
},
4546
"repository": {

webpack.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* Copyright 2011-2016 Digital Bazaar, Inc.
77
*/
88
const path = require('path');
9-
const webpack = require('webpack');
109

1110
// build multiple outputs
1211
module.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

Comments
 (0)