优化根目录读取

pull/19/head 3.0.2
宇天 2020-08-03 11:01:23 +08:00
parent 962427e233
commit 05a8d7fad1
3 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,8 @@
# 更新日志(Changed Logs)
## [3.0.2] 2020-08-03
- 代码优化
## [3.0.0] 2019-08-05
- 删除libsass, 改用`node-sass`(需要手动全局安装)

View File

@ -163,10 +163,10 @@ function __init__() {
}
}
// 以配置文件所在目录为根目录(workspace)
if (fs.exists(configFile)) {
options.workspace = path.dirname(configFile)
options.workspace = wsDir
// 有配置文件时, 优先使用配置文件的配置
if (fs.exists(configFile)) {
let tmp = JSON.parse(fs.cat(configFile).toString())
Object.assign(options, tmp)

View File

@ -2,7 +2,7 @@
"name": "scss-to-css",
"displayName": "scss-to-css",
"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",
"author": "Yutent [@yutent]",
"icon": "logo.png",