Vue框架使用sass
2024-09-05 17:08:45
引入:
cnpm install node-sass --save-dev //安装node-sass cnpm install sass-loader@7.3.1 --save-dev cnpm install style-loader --save-dev //安装style-loader
webpack.base.conf.js中的module的rules内添加:
{
test: /\.sass$/,
use: [
'vue-style-loader',
'css-loader',
'sass-loader?indentedSyntax'
],
},
附:sass官网文档
最新文章
- 【postman】postman
- Tools - Get technical information from the Internet
- 一个URL链接到一个页面发生了什么?
- BZOJ1085: [SCOI2005]骑士精神 [迭代加深搜索 IDA*]
- anjularjs 路由
- 【转】php curl 伪造IP来源的实例代码
- PHP笔试题汇总
- PAT 1005
- platform机制
- JS线程模型&;Web Worker
- leetcode Search for a Range python
- Mysql innodb 间隙锁
- CAN自收自发问题小结
- Matlab调用C程序
- pytorch--nn.Sequential学习
- Docekr 挂在卷之后访问目录时异常 cannot open directory '.': Permission denied 的解决办法
- CentOS日志列表
- Unity Shader 学习之旅之SurfaceShader
- 20165218 《网络对抗技术》Exp2 后门原理与实践
- git爬坑不完全指北(二):failed to push some refs to ‘XXX’的解决方案