update scss
parent
732f7f4939
commit
331f5acc24
8
index.js
8
index.js
|
@ -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')
|
||||||
|
@ -24,7 +24,7 @@ let options = {
|
||||||
exclude: ''
|
exclude: ''
|
||||||
}
|
}
|
||||||
|
|
||||||
std.out = function(msg) {
|
std.out = function (msg) {
|
||||||
std.appendLine(msg)
|
std.appendLine(msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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')
|
||||||
}
|
}
|
||||||
|
@ -188,7 +186,7 @@ function __init__() {
|
||||||
|
|
||||||
function deactivate() {}
|
function deactivate() {}
|
||||||
|
|
||||||
exports.activate = function(ctx) {
|
exports.activate = function (ctx) {
|
||||||
__init__()
|
__init__()
|
||||||
|
|
||||||
vsc.workspace.onDidChangeConfiguration(__init__)
|
vsc.workspace.onDidChangeConfiguration(__init__)
|
||||||
|
|
18
package.json
18
package.json
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue