vuejs / vue-docs-zh-cn

该项目已不再维护,有劳通过 Vue 官网查阅最新的文档
https://cn.vuejs.org/
MIT License
1.32k stars 196 forks source link

怎么查看webpack 配置 #13

Closed wenJonSnow closed 6 years ago

wenJonSnow commented 6 years ago

npm install -g @ vue / cli , vue creat vueApp 这2个命令生成的项目 如何查看 webpack 配置,因为没有build 和config 文件。

zzlw commented 6 years ago

npm ERR! path /Users/andy/Desktop/lenovo_rubiks_cube/node_modules/async-validator
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access '/Users/andy/Desktop/lenovo_rubiks_cube/node_modules/async-validator'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/andy/.npm/_logs/2018-06-13T10_25_42_426Z-debug.log
 ERROR  command failed: npm install --loglevel error -D @vue/cli-plugin-eslint
hiYoHoo commented 6 years ago

可以在项目根目录下新建 vue.config.js 文件,参考这里:https://cli.vuejs.org/config/

LDWX commented 6 years ago

使用 vue inpsect > output.js 可以将webpack配置打印到output.js文件中进行查看

Jinjiang commented 6 years ago

几位好,这个仓库只会讨论一些零散的非正式的中文文档翻译,不讨论技术本身。 cli 的技术问题反馈请移步至:https://github.com/vuejs/vue-cli 或其它技术论坛和问答社区。这些地方有更多更活跃的人可以帮到大家。 更何况 cli 的中文文档也已经“转正”了:https://cli.vuejs.org/ 因此这里对该 issue 做关闭处理。 感谢理解