Answer the question
In order to leave comments, you need to log in
How to automate prefixing (phpStorm, LESS)?
I use mixins for prefixing. It looks something like this:
.border-radius (@radius) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
border-radius: @radius;
}
.example {
height: 150px;
width: 50%;
margin: 0 auto;
.border-radius(5px);
}
.example {
height: 150px;
width: 50%;
margin: 0 auto;
border-radius: 5px;
}
Answer the question
In order to leave comments, you need to log in
If you use Grunt to build less files into one css file. Then a plugin for it is perfect for you: https://github.com/nDmitry/grunt-autoprefixer
plugins.jetbrains.com/plugin?pr=&pluginId=7059
I use this plugin. He will cope with your task.
Here is an example of minified CSS:
.example{height:150px;width:50%;margin:0 auto;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question