update scss

master
yutent 2022-10-09 14:57:50 +08:00
parent 732f7f4939
commit 331f5acc24
2 changed files with 14 additions and 12 deletions

View File

@ -6,7 +6,7 @@
const vsc = require('vscode') const vsc = require('vscode')
const path = require('path') const path = require('path')
const scss = require('sass') const scss = require('@bytedo/sass')
const fs = require('iofs') const fs = require('iofs')
const postcss = require('postcss') const postcss = require('postcss')
@ -131,7 +131,6 @@ const Compiler = {
return return
} }
} }
this.compile(doc) this.compile(doc)
} }
} }
@ -174,7 +173,6 @@ function __init__() {
options.outdir = path.join(options.workspace, options.outdir) options.outdir = path.join(options.workspace, options.outdir)
} }
} }
if (options.exclude) { if (options.exclude) {
options.exclude = new RegExp(options.exclude, 'i') options.exclude = new RegExp(options.exclude, 'i')
} }

View File

@ -2,16 +2,20 @@
"name": "scss-to-css", "name": "scss-to-css",
"displayName": "scss-to-css", "displayName": "scss-to-css",
"description": "🔥 The easiest way to compile scss file to css. And autoprefixer at the same time.", "description": "🔥 The easiest way to compile scss file to css. And autoprefixer at the same time.",
"version": "3.2.2", "version": "3.2.3",
"publisher": "yutent", "publisher": "yutent",
"author": "Yutent [@yutent]", "author": "Yutent [@yutent]",
"icon": "logo.png", "icon": "logo.png",
"engines": { "engines": {
"vscode": "^1.28.0" "vscode": "^1.28.0"
}, },
"categories": ["Formatters"], "categories": [
"activationEvents": ["*"], "Formatters"
"main": "out.js", ],
"activationEvents": [
"*"
],
"main": "index.js",
"contributes": { "contributes": {
"commands": [ "commands": [
{ {
@ -94,9 +98,9 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"autoprefixer": "^9.3.1", "autoprefixer": "^9.3.1",
"iofs": "^1.1.0", "iofs": "^1.5.2",
"postcss": "^7.0.6", "@bytedo/sass": "^1.54.8",
"sass": "^1.35.1" "postcss": "^7.0.6"
}, },
"devDependencies": { "devDependencies": {
"esbuild": "^0.12.14" "esbuild": "^0.12.14"