简体   繁体   中英

Compile LESS file into CSS Bootstrap 3

I have a LESS file which I want to compile to use as my bootstrap theme. How can I compile it? Is there a place where I can do this?

The less FILE comes from http://bootswatchr.com/ but when I click the link get CSS and choose either minified version or complete version, nothing happens.

I have the LES file from the left pane, is there a way I can still compile it?

  1. Install node.js
  2. Install the Less compiler: npm install -g less
  3. Run the Less compiler on your Less source to produce CSS: lessc your-source.less > output.css More info: http://lesscss.org/#using-less

If you are using WebStrom IDE, then it has a plugin for LESS to compile. I have been using the plugin to compile the LESS over a year.

If you want software, then I would recommend SimpLESS . You can use it on OSX/Win. It has drag and drop support which is nice and will tell you if your syntax is wrong. It also updates to support the latest LESS version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM