Skip to content

Commit

Permalink
Merge pull request #1675 from hackmdio/fix/windows-webpack-build
Browse files Browse the repository at this point in the history
fix: webpack exclude path should support windows path
  • Loading branch information
Yukaii authored May 11, 2021
2 parents bf5325b + 57b2fa8 commit bef0701
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,10 @@ module.exports = {
}, {
test: /\.js$/,
use: [{ loader: 'babel-loader' }],
exclude: [/node_modules/, /public\/vendor/]
exclude: [
path.resolve(__dirname, 'node_modules'),
path.resolve(__dirname, 'public/vendor')
]
}, {
test: /\.css$/,
use: [
Expand Down

0 comments on commit bef0701

Please sign in to comment.