Skip to content

Commit

Permalink
fix: .node file load problem on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
runningiris committed Sep 14, 2020
1 parent 6e93d28 commit 9c20528
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 15 deletions.
60 changes: 45 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"js-md5": "^0.7.3",
"mime": "^2.4.6",
"moment": "^2.26.0",
"node-loader": "^1.0.1",
"npm": "^6.14.5",
"sass": "^1.26.10",
"svg-sprite-loader": "^4.2.1",
Expand Down
11 changes: 11 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,16 @@ module.exports = {
localeDir: 'locales',
enableInSFC: false
}
},
configureWebpack: {
module: {
rules: [
// to fix .node file load problem on macOS
{
test: /\.node$/,
loader: 'node-loader'
}
]
}
}
}

0 comments on commit 9c20528

Please sign in to comment.