Vue 配置 js 文件
postcss.config.js
https://github.com/webpack-contrib/postcss-loader
https://blog.csdn.net/Jensen_Yao/article/details/103203490
postcss 是帮我们后处理css ,css已经编译完成了,在stylus-loader编译成css之后,在通过postcss优化css,通过一系列组件去优化,比如以下,通过autoprefixer 添加css前缀。
const autoprefixer = require('autoprefixer') module.exports = { plugins: [ autoprefixer() ] }
gulpfile.js (任务自动管理工具)
https://www.gulpjs.com.cn/docs/getting-started/quick-start/
https://javascript.ruanyifeng.com/tool/gulp.html
plopfile.js
https://blog.csdn.net/hjb2722404/article/details/110957386
jsconfig.json
- 目录中存在jsconfig.json文件表示该目录是JavaScript项目的根目录。jsconfig.json文件指定根文件和JavaScript语言服务提供的功能选项。
- jsconfig.json源于tsconfig.json,是TypeScript的配置文件。jsconfig.json相当于tsconfig.json的“allowJs”属性设置为true。
{ "compilerOptions": { "target": "esnext", "checkJs": false, "strict": true, "allowSyntheticDefaultImports": true, "baseUrl": ".", "module": "commonjs", "paths": { "@/*": ["./src/*"], } }, "exclude": ["node_modules", "dist", "temp"], "include": ["src/**/*", "types/**/*"] }