ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LESS-build

by berfarah ALL

Less build sytem for Sublime Text 2

Details

  • 2017.04.17.06.12.52
  • github.​com
  • github.​com
  • 7 years ago
  • 2 hours ago
  • 12 years ago

Installs

  • Total 64K
  • Win 41K
  • Mac 17K
  • Linux 7K
Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4
Windows 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 2 0 1 1 0 0 0 0 0 1 0 0 1 0 0 1 1 0 1
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

LESS build system package for Sublime Text 2

THIS REPO IS NOT BEING MAINTAINED

Sorry for only putting this in the README now, after 4 years! But I'm still seing issues being opened. Since I don't use Sublime or LESS anymore I recommend you try one of the following: https://github.com/danro/LESS-sublime https://github.com/timdouglas/sublime-less2css

Or search here for an adequate alternative: https://packagecontrol.io/search/less

Provides two build systems for .less files, both minified and non-minified. Requires lessc (via node.js) on OSX and Linux.

Installing

With the Package Control plugin: The easiest way to install this package is through Package Control, which can be found at this site: http://wbond.net/sublime_packages/package_control

Once you install Package Control, restart ST2 and bring up the Command Palette (Command+Shift+p on OS X, Control+Shift+p on Linux/Windows). Select “Package Control: Install Package”, wait while Package Control fetches the latest package list, then select LESS when the list appears.

Without Git: Download the latest source zip from github and extract the files to your Sublime Text “Packages” directory, into a new directory named LESS.

With Git: Clone the repository in your Sublime Text “Packages” directory:

git clone git://github.com/berfarah/LESS-sublime-build.git LESS

The “Packages” directory is located at:

  • OS X: ~/Library/Application Support/Sublime Text 2/Packages/
  • Linux: ~/.Sublime Text 2/Packages/
  • Windows: %APPDATA%/Sublime Text 2/Packages/

Be aware: On OSX you need lessc installed (via node.js / npm) and in your PATH. If you're having issues with this, look it up here http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x.

Includes (currently v1.3.0.2) https://github.com/dotless/dotless

Setting Up

This package includes multiple build packages, each doing a different thing. In order for updates to the package not to overwrite which one you wish to use, each build package has the extension sublime-build-choice, and the one you want to use is symlinked to LESS.sublime-build.

Go into your package directory (shown above), open the LESS-build directory, and run either changeLESSBuildType.bat (if you're on windows) or changeLESSBuildType.sh (if you're on OSX or Linux) to register which type you'd like to use.

There are currently two build choices; Normal and Directory Rewrite.

Normal

Saves the css or min.css file in the same directory as the less file An Example: building C:\someproject\less\components\buttons\border.less would put the css in C:\someproject\less\components\buttons\border.css

Directory Rewrite

Saves the css or min.css file in the css directory, but with the same directory structure. An example: building C:\someproject\less\components\buttons\border.less would put the css in C:\someproject\css\components\buttons\border.css Note: The folder must be called less, and it will only go into css!