!117 fix info log error

Merge pull request !117 from 卡哥/master
This commit is contained in:
openharmony_ci 2022-10-29 02:16:14 +00:00 committed by Gitee
commit 506088708e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -211,7 +211,7 @@ function parse(code, done, resourcePath) {
var ast, err, jsonStyle = {}, log = []
// css parse
ast = css.parse(code, {silent: true})
ast = css.parse(code, {silent: true, source: resourcePath});
// catch syntax error
if (ast.stylesheet.parsingErrors && ast.stylesheet.parsingErrors.length) {