mrcrowl / vscode-easy-less

Easy LESS extension for Visual Studio Code
MIT License
68 stars 22 forks source link

how can i activate auto prefix for output file #4

Closed ta3pks closed 7 years ago

ta3pks commented 8 years ago

how can i activate auto prefix for output file

RadhiFadlillah commented 7 years ago

@NikosEfthias have you found out how to do it ?

ta3pks commented 7 years ago

@RadhiFadlillah nope i didnt i just closed the issue due to the age . no response from the writers

mrcrowl commented 7 years ago

@NikosEfthias sorry I ignored this because it was closed. Can you please elaborate on what the request is? What do you mean by auto prefix? Could you provide an example?

ta3pks commented 7 years ago

using autoprefixing such as --webkit-- --moz--

On Sun, Nov 20, 2016 at 4:32 AM mrcrowl notifications@github.com wrote:

@NikosEfthias sorry I ignored this because it was closed. Can you please elaborate on what the request is? What do you mean by auto prefix? Could you provide an example? On Sun, 20 Nov 2016 at 12:39 PM, Nikos Efthias notifications@github.com wrote:

@RadhiFadlillah https://github.com/RadhiFadlillah nope i didnt i just closed the issue due to the age . no response from the writers

— You are receiving this because you are subscribed to this thread.

Reply to this email directly, view it on GitHub < https://github.com/mrcrowl/vscode-easy-less/issues/4#issuecomment-261747430

, or mute the thread < https://github.com/notifications/unsubscribe-auth/ABtooJrmE_bOpQA_G1y1AbXVgY4-8DKgks5q_4jIgaJpZM4IOlM0

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mrcrowl/vscode-easy-less/issues/4#issuecomment-261749659, or mute the thread https://github.com/notifications/unsubscribe-auth/AIrQ3bUXJPZ30FoXOoRGUAsFOEqjYxW0ks5q_5UNgaJpZM4IOlM0 .

RadhiFadlillah commented 7 years ago

For example, in brackets-less-autocompile we can create configuration file like this :

{
    "compress": true,
    "strictMath": true,
    "autoprefixer": "last 2 versions; > 5%"
}

Using this configuration, when I save a LESS file like this :

* {
    box-sizing: border-box;
    font-family: 'Source Sans Pro', 'sans-serif';
    user-select: none;
}

It will compile into CSS file like this :

* {
    box-sizing: border-box;
    font-family: 'Source Sans Pro', 'sans-serif';
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}
mrcrowl commented 7 years ago

@RadhiFadlillah, @NikosEfthias: That looks awesome! Wish I'd known about it earlier. Will try look into it in the next week or so.

ta3pks commented 7 years ago

@mrcrowl less compiler support this using plugins

mrcrowl commented 7 years ago

Auto-prefix support is now present in v1.4.0