2019年3月13日

webpack 中,importloaders 配置项的含义

摘要: importLoaders:用于配置「css loader 作用于 @import 的资源之前」有多少个 loader。 1. 2. 3. 官方介绍: "https://webpack.docschina.org/loaders/css loader/ importloaders" 阅读全文

posted @ 2019-03-13 16:37 cag2050 阅读(3380) 评论(0) 推荐(0) 编辑

vue cli 3 中,Lint on save 与 Lint and fix on commit 区别(待补充)

摘要: 待补充 阅读全文

posted @ 2019-03-13 15:44 cag2050 阅读(3386) 评论(0) 推荐(0) 编辑

使用 vue-cli-service inspect 来查看一个 Vue CLI 3 项目的 webpack 配置信息(包括:development、production)

摘要: 使用 来查看一个 Vue CLI 3 项目的 webpack 配置信息(包括:development、production) 1. mode 指定环境模式 (默认值:development) 2. 运行命令,在终端输出: 开发环境: 生产环境: 3. 运行命令,将输出导入到 js 文件: 开发环境: 阅读全文

posted @ 2019-03-13 14:52 cag2050 阅读(11669) 评论(0) 推荐(1) 编辑

Eslint 能自动格式化代码,为什么还要用 Prettier?

摘要: ESLint 与 Prettier 区别: 1. ESLint:代码检测工具;可以检测出你代码中潜在的问题,比如使用了某个变量却忘记了定义; 2. Prettier:代码格式化工具;作为代码格式化工具,能够统一你或者你的团队的代码风格。 3. 使用 ESLint 与 eslint plugin pr 阅读全文

posted @ 2019-03-13 11:29 cag2050 阅读(3309) 评论(0) 推荐(0) 编辑

prettier-eslint 与 prettier-eslint-cli 区别

摘要: "prettier eslint" 与 "prettier eslint cli" 区别: 1. prettier eslint "只能处理字符串" 2. prettier eslint cli "能处理一个或多个文件" 3. "默认情况下,prettier eslint cli 先运行 prett 阅读全文

posted @ 2019-03-13 11:10 cag2050 阅读(417) 评论(0) 推荐(0) 编辑

导航