I
I
Igor2020-03-13 23:16:46
Sass
Igor, 2020-03-13 23:16:46

How to make autosave in vs code for all sass files?

Until recently, I used php shtorm, and there was a function that when you work with sass and import, for example, header.sass into main.sass, and then change something in the header, you don’t need to save both the header and main, but only the header. Is there a way to do this in VS Code (using the sass auto compiler plugin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
7
7GIT, 2020-03-15
@invex

Here is my settings.json

{
    "files.autoSaveDelay": 5000
    "liveSassCompile.settings.formats": [
        {
            "extensionName": ".css",
            "format": "expanded",
            "savePath": "/dist"
        }
    ],
    "liveSassCompile.settings.includeItems": [
        "src/milligram.sass"
    ],
}

"files.autoSaveDelay": 5000 - automatically save files every 5 seconds; doc
"liveSassCompile.settings.formats": "savePath": "/dist" - save the finished .css to /dist
"liveSassCompile.settings.includeItems": "src/milligram.sass" - monitor and compile only the milligram.sass file in the /src folder. doc
5e6dd151486cf641327895.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question