Skip to main content
Participant
Mar 22, 2018 4:34 PM UTC
Answered

Brackets LESS AutoCompile settings

Hello,

I use the plugin "LESS AutoCompile" for brackets.

Does anyone know how to exclude certain files or directories from being compiled? I just want to compile the style.less in style.css in my project. However, the plugin automatically compiles all my .less files I open with brackets.

Thanks, Roland

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Nancy OShea
    Nancy OSheaCorrect answer
    Community Expert
    May 16, 2018 7:21 PM UTC

    This is from the documentation on GitHub.

    GitHub - jdiehl/brackets-less-autocompile: Automatic compilation of LESS files for Brackets

    The first line of code is where you express your preferred options.  For example:

    // out: ../dist/app.css, compress: true, strictMath: true

    Nancy O'Shea— Product User & Community Expert

    5 replies

    arzu12
    Participant
    May 2, 2020 11:48 AM UTC

    what should I add for autoprefixer?

    Translate
    Nancy OShea
    Community Expert
    Community Expert
    May 2, 2020 8:10 PM UTC

    AutoCompile does not do AutoPrefixing.  You need a separate Brackets extension for that.

     

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    May 16, 2018 7:21 PM UTC

    This is from the documentation on GitHub.

    GitHub - jdiehl/brackets-less-autocompile: Automatic compilation of LESS files for Brackets

    The first line of code is where you express your preferred options.  For example:

    // out: ../dist/app.css, compress: true, strictMath: true

    Translate
    Nancy O'Shea— Product User & Community Expert
    Participant
    May 16, 2018 7:05 PM UTC

    You will need to place a line of code at the top of the .less document you wish to keep from compiling.

    The code:

    //out:null

    Translate
    B i r n o u
    Legend
    Mar 22, 2018 4:39 PM UTC

    well, I never use less, but when indicating the source file have you try placing a ! starting the file path ?

    Translate