Vue Cli 3.0 where is the config file?

前端 未结 4 1470
悲&欢浪女
悲&欢浪女 2020-12-23 19:23

I\'ve seen it mentioned in docs, etc the vue.config.js file. And also noted previously these are handled in the webpack config file, etc in 2.0. But I can\'t find either fil

4条回答
  •  星月不相逢
    2020-12-23 20:09

    Where is the config files and why isn't it anywhere in the top level folders, etc?

    The initial project doesn't require the file to exist because you just created a project with fresh "default" settings that don't require any config.

    Just create it yourself. it's even mentioned in the README:

    Many aspects of a Vue CLI project can be configured by placing a vue.config.js file at the root of your project. The file may already exist depending on the features you selected when creating the project.

    (emphasis mine)

    Edit: now to be found here: https://cli.vuejs.org/config/#global-cli-config

提交回复
热议问题