"scripts": {
"serve": "vue-cli-service serve --open",
// "serve": "vue-cli-service serve --open --host=localhost"
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave:false
})
(@代表的是src文件夹,这样将来文件过多,找的时候方便很多)
"compilerOptions": {
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
},
cnpm install --save less less-loader@5
如果想让组件识别less样式,需要在style标签的身上加上lang=less
修改title旁边的小图标