diff --git a/lib/utils.js b/lib/utils.js index e3a9ee6..bf442f8 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -17,7 +17,9 @@ export function compileScss(file, mini = true) { if (fs.isfile(file)) { return scss.compile(file, { style, ...OPTIONS }).css.trim() } else { - return scss.compileString(file, { style, ...OPTIONS }).css.trim() + return scss + .compileString(file.replace(/@loop/g, '@each'), { style, ...OPTIONS }) + .css.trim() } } catch (err) { console.log('compile scss: ', file) diff --git a/package.json b/package.json index 12898c5..020e72c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bd/wcui-cli", "type": "module", - "version": "1.0.2", + "version": "1.1.0", "bin": { "wcui-cli": "index.js" },