From 732f7f49391da2bec9e543b936e97abc249e1d06 Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 11 Mar 2022 18:07:39 +0800 Subject: [PATCH] fixed --- CHANGELOG.md | 3 +++ index.js | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 058849f..6e7eceb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # 更新日志(Changed Logs) +## [3.2.2] 2022-03-11 +- 项目根目录路径改为读取`fsPath`. + ## [3.2.1] 2022-03-09 - 更新`autoPrefixer`配置, 由`browsers`改成`overrideBrowserslist`。 diff --git a/index.js b/index.js index 950c74c..9854c17 100644 --- a/index.js +++ b/index.js @@ -148,7 +148,7 @@ function __init__() { options.output = options.output.split('|').map(it => it.trim()) if (folders && folders.length) { - wsDir = folders[0].uri.path + wsDir = folders[0].uri.fsPath } if (wsDir) { diff --git a/package.json b/package.json index fb4e813..b4c6d0a 100644 --- a/package.json +++ b/package.json @@ -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.2.1", + "version": "3.2.2", "publisher": "yutent", "author": "Yutent [@yutent]", "icon": "logo.png",