Skip to content

Commit c66d397

Browse files
Fix webpack warnings and errors.
1 parent 984cd54 commit c66d397

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

index.js

Lines changed: 16 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webpack.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var webpack = require('webpack');
2-
var UglifyJsPlugin = webpack.optimize.UglifyJsPlugin;
2+
var UglifyJsPlugin = require('uglifyjs-webpack-plugin');
33

44
module.exports = {
55
entry: __dirname + '/lib/index.ts',
@@ -25,6 +25,10 @@ module.exports = {
2525
},
2626
plugins: [
2727
new UglifyJsPlugin()
28-
]
28+
],
29+
node: {
30+
fs: 'empty',
31+
readline: 'empty'
32+
}
2933
};
3034

0 commit comments

Comments
 (0)