简体   繁体   中英

Why is my VS Code live sass compiler settings not compiling my scss file?

I have a lot of scss partials so I changed the settings to this: ```{ "es6-css-minify.cssPostfix": "", "liveSassCompile.settings.autoprefix": [

],
"liveSassCompile.settings.formats": [
    {
        "format": "compressed",
        "extensionName": ".css",
        "savePath": "/wp-content/themes/dawn-child",
    }
],
"liveSassCompile.settings.includeItems": [ "/wp-content/themes/dawn-child/style.scss" ],

}

but this is not compiling scss files in the mentioned folder. I even tried to change the saved path to dawn-child and dawn-child/style.css but neither seemed to work.

I'm using the glenn marks live sass compiler. Is there anything wrong with my settings?

Try putting a period in front of the directories:

"savePath": "./wp-content/themes/dawn-child",

And:

"liveSassCompile.settings.includeItems": [ "./wp-content/themes/dawn-child/style.scss" ],

The period indicates the current directory of the.json file you're running.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM