Sublime Forum

ST4 Build system question - sass, autoprefixer

#1

Hi, (Translated with DeepL)
I have written code to automatically generate ‘vendor-prefix’ and convert from ‘sass’ to ‘.css’ and ‘.min.css’ in ST3. I have updated the program from version 3 to 4. My code is not working properly. Can I ask for help to improve my code?
Autprefixer doesn’t work, the ‘sass’ to ‘css’ conversion task generates only one file, and another task is skipped. Can I ask for help to improve the code?

[ Information:
Autoprefixer comment: * - Prefixes will be added only on grid: true option. How to add: grid: true?
Compiled style-content.scss to style-content.css.
]

Current code:

{
    "cmd": [
            "autoprefixer", "--info",
            "&", 
            "sass", "--watch", "--update", "$file:${file_path}/${file_base_name}.css", "--stop-on-error", "--style", "expanded", "--source-map", "--trace", 
            "&", 
            "sass", "--watch", "--update", "$file:${file_path}/${file_base_name}.min.css", "--stop-on-error", "--style", "compresed", "--source-map", "--trace",
     ],

    "selector": "source.sass, source.scss",

    "file_patterns": "*.scss",

    "line_regex": "Line ([0-9]+):",

    "osx":
    {
        "path": "/usr/local/bin:$PATH"
    },

    "windows":
    {
        "shell": "true"
    }

}
0 Likes