Merge pull request #1675 from hackmdio/fix/windows-webpack-build

fix: webpack exclude path should support windows path
This commit is contained in:
Yukai Huang 2021-05-11 15:09:39 +08:00 committed by GitHub
commit bef0701c8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -443,7 +443,10 @@ module.exports = {
}, { }, {
test: /\.js$/, test: /\.js$/,
use: [{ loader: 'babel-loader' }], use: [{ loader: 'babel-loader' }],
exclude: [/node_modules/, /public\/vendor/] exclude: [
path.resolve(__dirname, 'node_modules'),
path.resolve(__dirname, 'public/vendor')
]
}, { }, {
test: /\.css$/, test: /\.css$/,
use: [ use: [