Comments (3)
其实用的是官方的 vue-cli3
脚手架创建的,所以针对 sass
的解析都已经包含在内了。这点可以通过 npm run inspect
生成的 output.js
得出答案。
所以涉及到以下3点改造:
- 安装
sass-loader
及node-sass
。 具体命令:
npm i sass-loader node-sass --save-dev
-
所有
.less
文件都需要改造成.sass
-
vue.config.js
配置,具体代码行:https://github.com/cklwblove/vue-cli3-template/blob/dev/vue.config.js#L33
from vue-cli3-template.
谢谢
from vue-cli3-template.
http://h5player.bytedance.com/gettingStarted/#%E8%87%AA%E5%AE%9A%E4%B9%89%E6%A0%B7%E5%BC%8F 我想引用这个 但是西瓜播放器这个是scss的 我安装sass-loader node-sass 后 他的样式不能加载进来 能不能指导一下怎么引入
from vue-cli3-template.
Related Issues (14)
- vue-cli 3.x 项目,如何增加对 jsx 的支持? HOT 1
- 为啥我的cli3.0的包 就是脚手架搭建的 配置了transform-vue-jsx 还是不行 HOT 1
- 生产环境移除 console.log
- webp在项目中的使用示例
- 文件上传怎么用啊 HOT 1
- 跨域怎么配置? HOT 7
- 同学,您这个项目引入了1187个开源组件,存在42个漏洞,辛苦升级一下
- 你好,可不可以再问个问题,这个模板下vux怎么配置,求指点。。 HOT 2
- 赞一个 HOT 1
- 为什么不建议用此作为项目的基础模板 HOT 3
- 我安装完vant 为什么样式引入不了
- Dependency Dashboard
- body的overflow属性是在哪里初始化的 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-cli3-template.