From 692a0539b2e4e1d3a0f9ee685bacd2147c6ec553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Wed, 30 Jun 2021 14:42:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 ++++++---- README_ZH.md | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1bde127..9540710 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # scss-to-css -> The easiest way to compile scss file to css without using other tools like `webpack`. And autoprefixer at the same time. +> It can be used for simple compilation/compression of scss files without installing various front-end engineering tools (webpack, etc.). [![Version](https://vsmarketplacebadge.apphb.com/version-short/yutent.scss-to-css.svg)](https://marketplace.visualstudio.com/items?itemName=yutent.scss-to-css) [![Rating](https://vsmarketplacebadge.apphb.com/rating-short/yutent.scss-to-css.svg)](https://marketplace.visualstudio.com/items?itemName=yutent.scss-to-css) @@ -14,8 +14,8 @@ Live demo: ![demo](./demo.gif) ## Why Scss-to-css -> For some small project or teaching speech. It's too fat to deploy a webpack env. -> Now, `scss-to-css` help us to compile scss file to css file at a none webpack project and autoprefixer. +> For small projects, various engineering tools such as webpack are too heavy and cumbersome to configure. And a lot of modules have to be installed. +> Sometimes, we just want to simply use the convenience brought by scss. So for this purpose, I wrote a vsc plug-in, which can be automatically compiled into a css file (stored in the current directory by default) when the scss file is saved, and the browser prefix is ​​automatically completed. ## Configuration @@ -31,7 +31,9 @@ Live demo: ## Dependencies -> We use `node-sass` instead of `libsass` +> We use `node-sass`(Deprecated in 3.1.0) instead of `libsass`. +>> v3.1.0 uses `sass` instead. No need to install node-sass globally + - `node-sass`, You need to install this module manually. Maybe `root` is required on linux. diff --git a/README_ZH.md b/README_ZH.md index 32eb035..775e813 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -29,7 +29,8 @@ ## 依赖 -> 3.x之后, 弃用libsass,改为node-sass, 但由于vscode的限制, node-sass在拓展里使用会有问题, 所以需要手动全局安装。 +> 3.x之后, 弃用`libsass`,改为`node-sass`, 但由于vscode的限制, `node-sass`在拓展里使用会有问题, 所以需要手动全局安装。 +>> v3.1.0改用并内置`sass`, 无需全局安装`node-sass`了。 - `node-sass`, 需要手动安装这个模块, 执行`npm i -g node-sass`, 在linux下, 可能需要root权限才可以安装。