Vue note

时间:2023-03-09 04:49:59
Vue note

1.npm run build 时,font:xx/xx "xxxx" 这种样式打包后会无效,只能写成font-size:xxx; line-height:xxx; font-family:xxx;

2.如果使用sass进行预处理:①安装sass-loader和node-sass     ②在想使用sass的位置指定语言:lang=‘scss’ scss属于css扩展,完全兼容css,这就相当于jade之于ejs    ③如果要编译sass文件,在webpack.base.config.js在loaders加上编译规则

{
        test: /\.scss$/,
        loaders: ["style", "css", "sass"]
},