3. 别名alias配置:
build\webpack.base.conf.js:
module.exports = {
...,
resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
'@': resolve('src'),
'common': resolve('src/common'),
'components': resolve('src/components'),
}
}
}
4. 安装默认样式:
yarn add normalize.css
(1). normalize.css vs Reset.css:
- 保护了有价值的默认值.
- 修复了浏览器的bug.
- 不会让调试工具变得杂乱.
- 支持模块化.
标签:normalize,src,vue,.-,js,alias,resolve,css From: https://blog.51cto.com/u_16273048/7842880