摘要: 通过vue-cli创建的脚手架项目, 配置.browserslistrc 即可实现CSS3/ES678 语法兼容 ie >= 8 Firefox >= 3.5 chrome >= 35 opera >= 11.5 阅读全文
posted @ 2020-09-30 15:45 凉城i 阅读(3522) 评论(0) 推荐(0) 编辑
摘要: postcss-pxtorem 用于自动帮助将px转换成rem,所以在编写代码时候,直接按照设计图px即可 module.exports = { plugins: { autoprefixer: {}, 'postcss-pxtorem': { rootValue: 100, // 根元素字体大小 阅读全文
posted @ 2020-09-30 15:39 凉城i 阅读(3296) 评论(0) 推荐(0) 编辑
摘要: module.exports = { /* 部署应用包的基本URL, 不设置可能会出现打包后项目找不到资源问题 */ publicPath: './', configureWebpack: { module: { rules: [ { test: /\.(html)$/, exclude: /nod 阅读全文
posted @ 2020-09-30 15:26 凉城i 阅读(803) 评论(0) 推荐(0) 编辑