parent
962427e233
commit
05a8d7fad1
|
@ -1,5 +1,8 @@
|
||||||
# 更新日志(Changed Logs)
|
# 更新日志(Changed Logs)
|
||||||
|
|
||||||
|
## [3.0.2] 2020-08-03
|
||||||
|
- 代码优化
|
||||||
|
|
||||||
## [3.0.0] 2019-08-05
|
## [3.0.0] 2019-08-05
|
||||||
- 删除libsass, 改用`node-sass`(需要手动全局安装)
|
- 删除libsass, 改用`node-sass`(需要手动全局安装)
|
||||||
|
|
||||||
|
|
6
index.js
6
index.js
|
@ -163,10 +163,10 @@ function __init__() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 以配置文件所在目录为根目录(workspace)
|
options.workspace = wsDir
|
||||||
if (fs.exists(configFile)) {
|
|
||||||
options.workspace = path.dirname(configFile)
|
|
||||||
|
|
||||||
|
// 有配置文件时, 优先使用配置文件的配置
|
||||||
|
if (fs.exists(configFile)) {
|
||||||
let tmp = JSON.parse(fs.cat(configFile).toString())
|
let tmp = JSON.parse(fs.cat(configFile).toString())
|
||||||
|
|
||||||
Object.assign(options, tmp)
|
Object.assign(options, tmp)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"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.0.1",
|
"version": "3.0.2",
|
||||||
"publisher": "yutent",
|
"publisher": "yutent",
|
||||||
"author": "Yutent [@yutent]",
|
"author": "Yutent [@yutent]",
|
||||||
"icon": "logo.png",
|
"icon": "logo.png",
|
||||||
|
|
Loading…
Reference in New Issue