猿问

怎么在 vue-cli webpack环境中 使用compass

问题

我在用Vue-cli 脚手架开发中,想使用compass作为css预编译器, 
于是我做了如下操作:
npm install compass --save-dev
先安装compass的预编译器
然后在.vue文件中设置了 <style>设置了 lang属性 <style>
但是在编译器中报了错误

Currently the sass-loader does not follow all of the webpack loader guidelines. The general problem is that the entry scss-file is passed to node-sass which does pretty much the rest. Thus @import statements inside your scss-files cannot be resolved by webpack's resolver. However, there is an issue for that missing feature in libsass.

找了Vue的官方文档, 和Vue-lic的 readme 还有issue 都没有找到怎么切换css预编译语言的配置方案 ,故在此寻求我步骤中的错误,以及解决方案

撒科打诨
浏览 588回答 1
1回答
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答