• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

less-postcss-autocompile

Auto compile LESS and process with PostCSS plugins
tnottu
1.2.3 1,652
6
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

less-postcss-autocompile package

Auto compile LESS file on save and process the CSS further with PostCSS plugins.

Currently supports these PostCSS plugins:

  • autoprefixer
  • oldie
  • cssnano

Add the parameters on the first line of the LESS file.

Parameter Type Description
out string Path of CSS file to create
sourcemap boolean Create sourcemap file
compress boolean Compress CSS file
main string Path to your main LESS file to be compiled. Separate multiple files with "|"
autoprefixer boolean|string Boolean value uses default settings. String value is passed as browserslist to the autoprefixer-plugin. Separate multiple entires with a ";" character.
oldie boolean Oldie makes a separate IE8 compatible version of the CSS file (removes mediaqueries etc).

Example

styles/main.less

// out: ../dist/main.css, sourcemap: true, compress: true, autoprefixer: true 
 
@import "../components/carousel/carousel.less";

components/carousel/carousel.less

// main: ../../main.less 
 
.carousel {
  height: 400px;
}

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by