fix: webpack exclude path should support windows path

Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
Raccoon 2021-04-27 18:24:47 +08:00
parent bf5325b37f
commit 57b2fa8d12
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38
1 changed files with 4 additions and 1 deletions

View File

@ -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: [