LESS AutoCompile

by Jonathan diehl for brackets >=0.31.0 
Automatically compiles less files upon saving.
version
1.1.10
modified
2015-08-30T16:21:32.114Z
first seen
2013-09-07T11:21:44.835Z
downloads
104608
 Versions
1.1.10
2015-08-30T16:21:32.114Z
35924
1.1.9
2015-06-30T11:51:14.316Z
6663
1.1.8
2015-03-23T20:10:05.583Z
10165
1.1.7
2015-01-08T22:02:56.790Z
7939
1.1.6
2015-01-05T15:45:52.049Z
1383
1.1.5
2014-12-02T19:06:31.493Z
4484
1.1.4
2014-11-25T16:48:31.170Z
2053
1.1.3
2014-10-20T21:20:11.310Z
5220
1.1.2
2014-10-07T18:46:59.607Z
2181
1.1.1
2014-09-11T16:17:17.724Z
2964
1.1.0
2014-05-20T16:28:12.053Z
7156
1.0.13
2014-04-05T08:53:08.970Z
3372
1.0.12
2014-03-22T18:05:10.472Z
1554
1.0.11
2014-03-16T18:42:21.348Z
919
1.0.10
2014-01-11T13:51:20.824Z
3970
1.0.9
2013-12-27T22:09:15.991Z
1019
1.0.8
2013-12-11T19:33:54.971Z
1230
1.0.7
2013-12-11T18:34:22.218Z
21
1.0.6
2013-11-26T19:39:36.811Z
1209
1.0.5
2013-11-12T21:40:38.083Z
1313
1.0.4
2013-10-21T20:28:44.641Z
1507
1.0.3
2013-10-21T20:22:35.746Z
12
1.0.2
2013-10-16T12:25:59.994Z
628
1.0.1
2013-09-10T18:48:04.164Z
1524
1.0.0
2013-09-07T11:21:44.835Z
198
 Readme
# LESS AutoCompile LESS AutoCompile is an extension for the code editor Brackets that adds automatic compilation of LESS files upon saving. ### Installation LESS AutoCompile is installed from the Brackets Extension Manager. Please restart Brackets after installing the extension. ### Manual Installation 0. Install [NodeJS](https://nodejs.org) 1. Find your extension folder: Choose Help > Show Extensions Folder (or open it manually) 2. Drill down to the user folder 3. Check out the extension from GitHub into the user folder 4. Run `npm i` in the root folder of the extension 5. Run `npm i` in the node folder of the extension ### Compile Options LESS compile options can be set in the first line of the edited file: // out: ../dist/app.css, compress: true, strictMath: true The following compile options are available: * out: redirect the css output to a different file * main: compile a different file instead of this one (ignores all other options) * compress: compress the css output * strictMath: require brackets around math expressions * sourceMap: generate a source map * autoprefixer: use [autoprefixer](https://github.com/postcss/autoprefixer) (value is passed as browsers to the autoprefixer-plugin, separate multiple entires with a `;` character) * cleancss: use [clean-css](https://github.com/jakubpawlowicz/clean-css) (value is passed as compatibility to the cleancss-plugin - not compatible with source-maps) Other less compiler options might also work but are untested at this point. See [Grunt LESS](https://github.com/gruntjs/grunt-contrib-less#options) for a complete list of possible options. ### Project-wide Compile Options You can tell the extension to always compile a specific set of files in a project independent of the edited file by creating a configuration file called `.brackets.json` or `compile.json` in your project's root folder: { "less": [ "path/to/file1.less", "path/to/file2.less" ] } All file paths must be relative to the project's root folder. To disable less-autocompile for a project, specify an empty list of files: { "less": [] } ### FAQ How can I redirect the output to a separate file? > Add the following line to the head of your less file: > > // out: new-file.css How can I supress compiling this less file / compile a different less file than the one being edited? > Add a reference to the master.less file to the head of the imported less file: > > // main: master.less How can I supress the compilation of a single less file > Set out to null > > // out: null ### Acknowledgements * Thanks to [James Lawrence](https://github.com/jlaw90) for enabling relative imports in less. * Thanks to [Martin Zagora](https://github.com/zaggino) for adding the less verison number to the output. * Thanks to [Dimitar S.](https://github.com/deemeetar) for allowing users to specify a custom output path. * Thanks to [FezVrasta](https://github.com/FezVrasta) for tweaking the less compiler settings. * Thanks to [Kenneth Ruddick](https://github.com/KenRud) for the compile.json configuration addition. * Thanks to [Florian Fida](https://github.com/piccaso) for kicking off autoprefixer and cleancss support. ### License The MIT License (MIT) Copyright (c) 2013 Jonathan Diehl Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.