If I uncomment the below css extracting method in the vue.config.js file and run build for production. I am getting the above mentioned error.
// vue.config.js file
// uncomment before executing 'npm run build'
css: {
extract: {
filename: 'bundle.css',
chunkFilename: 'bundle.css',
},
}
Am I supposed to pass the filename as variable. But these are default template code for extracting css during production build.
Try renaming the chunkFilename to eg just "bundle", because otherwise, the extracted CSS file and the chunkFile have the same file name.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.