https://i.sstatic.net/YU1rB.png
module.exports = {
presets: [
'@vue/app'
],
module:{
rules: [
{
test: /\.vue$/,
exclude: [
'./src/components/Homepages/number1',
'./src/components/Homepages/number2'
]
}
]
}
}
I have a specific requirement where I need to conditionally include only one of 'Homepages/number1', 'Homepages/number2', 'Homepages/number3' folders in my project while excluding the others when running npm run build. This is to reduce the size of my dist folder. I've tried the code above in my babel.config.js file, but I'm not confident it's the correct solution. Any advice or suggestions would be greatly appreciated.