diff --git a/deps/weex-styler/index.js b/deps/weex-styler/index.js index 4509bcfdeb349baaa4df10bbf7e9d755943952a4..197cb8546a8a68656d329f64399607a7c3b8ed34 100644 --- a/deps/weex-styler/index.js +++ b/deps/weex-styler/index.js @@ -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) {