Skip to content

Commit

Permalink
Resolve webpack issue related to winston (missing fs module)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jblew committed Aug 6, 2018
1 parent 9f841fc commit d81adcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ module.exports = {
resolve: {
extensions: [".js", ".json"]
},
node: {
fs: "empty" // fix can't resolve "fs" in winston
},
plugins: [
new Visualizer({
filename: './statistics.html'
Expand Down

0 comments on commit d81adcc

Please sign in to comment.