前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >css/style/sass-loader区别

css/style/sass-loader区别

作者头像
杨肆月
发布2019-08-15 18:52:09
5530
发布2019-08-15 18:52:09
举报
文章被收录于专栏:全栈开发之路全栈开发之路

css-loader——translates CSS into CommonJS

The css-loader interprets @import and url() like import/require() and will resolve them.

style-loader——creates style nodes from JS strings

Adds CSS to the DOM by injecting a <style> tag

sass-loader——compiles Sass to CSS, using Node Sass by default

Loads a Sass/SCSS file and compiles it to CSS. Use the css-loader or the raw-loader to turn it into a JS module and the MiniCssExtractPlugin to extract it into a separate file.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018.08.10 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • css-loader——translates CSS into CommonJS
  • style-loader——creates style nodes from JS strings
  • sass-loader——compiles Sass to CSS, using Node Sass by default
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档