I have vue cli project. I want to exclude js files inside spesific folder using exclude rules, but not working. Bundle file still have js code that i want to exclude.
I want exclude *.js files inside fake-db folder. Here is my folder structure
Using exclude rules inside configureWebpack but not working.
configureWebpack: () => {
if (process.env.NODE_ENV === 'production') {
return {
module: {
rules: [{
test: /\.js$/,
exclude: path.resolve(__dirname, 'src/fake-db')
}]
}
}
}
}
What the other way that I have to use for excluding spesific js file from bundling?
