Skip to content

Commit 57b2fa8

Browse files
committed
fix: webpack exclude path should support windows path
Signed-off-by: Raccoon <[email protected]>
1 parent bf5325b commit 57b2fa8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webpack.common.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,10 @@ module.exports = {
443443
}, {
444444
test: /\.js$/,
445445
use: [{ loader: 'babel-loader' }],
446-
exclude: [/node_modules/, /public\/vendor/]
446+
exclude: [
447+
path.resolve(__dirname, 'node_modules'),
448+
path.resolve(__dirname, 'public/vendor')
449+
]
447450
}, {
448451
test: /\.css$/,
449452
use: [

0 commit comments

Comments
 (0)