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

LESS-build

by berfarah ST2/ST3

Less build sytem for Sublime Text 2

Details

  • 2017.04.17.06.12.52
  • github.​com
  • github.​com
  • 9 months ago
  • 21 minutes ago
  • 6 years ago

Installs

  • Total 58K
  • Win 36K
  • OS X 16K
  • Linux 7K
Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8
Windows 1 15 6 21 12 9 15 11 8 14 12 16 18 11 24 5 8 5 23 29 38 9 8 6 7 9 9 10 3 7 4 8 5 6 6 9 5 6 9 12 6 7 19 9 4 6
OS X 0 3 1 6 2 1 6 8 0 3 5 5 4 4 6 2 2 5 12 13 8 2 4 2 2 1 3 3 0 1 1 5 3 0 1 8 0 2 2 5 5 1 1 1 0 5
Linux 0 1 0 4 3 2 0 0 0 0 1 2 0 0 0 0 0 0 0 3 2 0 0 0 0 1 0 3 1 0 1 2 3 2 0 1 0 0 1 2 2 0 0 2 0 1

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!