A
A
ajlee42020-06-15 14:34:29
Vue.js
ajlee4, 2020-06-15 14:34:29

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
    }
  }
  }

but for some reason it doesn't work, please help?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question