Answer the question
In order to leave comments, you need to log in
How to collect all css and js files into one file during build in Vue Cli?
With the npm run build command, I want there to be one file in the css folder (conditionally main.css) and in js (bundle.js). Currently creates a bunch of chunks when building. Created vue.config.js file added there
module.exports = {
configureWebpack: {
optimization: {
splitChunks: false
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question