Categories


Authors:
acdvorak

LESS CSS Compiler

Products: IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm, AppCode, Android Studio, 0xDBE

Vendor: Andrew C. Dvorak

Source code: https://github.com/acdvorak/intellij-lessc-plugin

License: http://www.apache.org/licenses/LICENSE-2.0

Bugtracker page

Watches directories for changes to LESS files and compiles changed files to CSS.

Supports LESS 1.6.0.

Features: Recursive directory monitoring

When a LESS file in a watched directory (or one of its subdirectories) is modified and saved, it is automatically compiled to CSS and copied to the same relative path in one or more output directories.

@import dependency resolution

Files that @import a modified LESS file are also recompiled automatically.

Include / exclude files by pattern

Prevent specific LESS files from being compiled by specifying include / exclude patterns (glob) that match against filename, folder name, or any part of the complete path to the LESS file.

Move, copy, and delete detection

When a LESS file is moved, copied, or deleted, the plugin will offer to perform the same operation on the corresponding CSS file(s).

Virtual filesystem notification

Unlike other solutions, this plugin is smart enough to notify IntelliJ when CSS files are changed, moved, copied, or deleted. In most cases, updated CSS files will be immediately reflected in the editor and Project tree view.

Selective compilation

If the plugin somehow fails to catch changes to a LESS file, simply right-click anywhere in the editor or Project tree and select "Compile to CSS". You can also compile an entire directory by right-clicking on it in the Project tree.

Error notifications

Any errors encountered during the compilation process will produce an error notification balloon in the IDE containing a link to the file and the line number that caused the error.

Screenshots:

Screenshots are available at the LESS CSS Compiler page on the IntelliJ Plugin Repository website.

Source Code:

GitHub project

Compatibility:

NOTE: This plugin is ONLY compatible with IntelliJ IDEA 11+, PhpStorm 5+, and WebStorm 5+. It should also be compatible with RubyMine 4.5+, but has not been tested.

Downloads: 150931
Rating:
Participated in rating: 19
Version Compatible builds Date
2.6.9 107.105 08.01.2014 Download
30 updates are hidden show all updates
Screenshot #14003
Screenshot #14001
Screenshot #14002

Recent change notes

2.6.9
  • [bugfix] Fixed #43 - Compile multiple profiles
2.6.8
  • [bugfix] Fixed #42, #49, and #61 - More robust profile settings persistence
  • [enhancement] Added form validation to project settings
2.6.7
  • [bugfix] Upgraded to LESS 1.6.0 and fixed JavaScript errors in less.js 1.6.0
2.6.6
  • [bugfix] Issue #53 - Downgraded to LESS 1.5.0 to fix JavaScript errors in less.js 1.6.0
2.6.5
  • [enhancement] Issue #53 - LESS 1.6.0
2.6.4
  • [enhancement] Issue #58 - Added setting to disable automatic compilation on save (for those who prefer to compile manually)
2.6.3
  • [bugfix] Fixed to run under IntelliJ 13
2.6.2
  • [enhancement] Added "Compile to CSS" action for community edition
  • [bugfix] Fixed #39 - Upgraded LESS from version 1.3.1 to 1.3.3
  • [bugfix] Fixed #38 - UTF-8 support
2.6.1
  • [enhancement] Faster compiles with Rhino optimizations enabled
2.6.0
  • [bugfix] Fixed #25 - Multiple notifications for the same file
  • [enhancement] Issue #4 - Hide previous error notifications for the same file
  • [enhancement] Issue #27 - Clean up Notifier logging
  • [enhancement] Issue #28 - Move UI messages to external properties files
2.5.5
  • [bugfix] Fixed #26 - VFS refresh doesn't work when CSS files don't already exist
  • [enhancement] Issue #20 - Disable all "Reset prompts" buttons
  • [enhancement] Issue #22 - Rename notification groups
2.5.4
  • [bugfix] Fixed #23 - Thread safety when saving / compiling
2.5.3
  • [enhancement] Issue #19 - Alert user if no CSS output directories are specified when "Compile to CSS" action is invoked
2.5.2
  • [enhancement] Issue #9 - Respect //simpless:!minify and //simpless:minify per-file
2.5.1
  • [enhancement] Issue #6 - Optional .less extension support for @imports
2.5.0
  • [enhancement] Issue #24 - Show progress while compiling
  • [enhancement] Major code refactoring and cleanup
2.4.1
  • [enhancement] Added PhpStorm and WebStorm support
  • [enhancement] Updated README.md and plugin.xml
2.4.0
  • [enhancement] Issue #11 - Add include / exclude pattern support
2.3.3
  • [bugfix] Fixed #14 - Commit changed LESS files to disk before compiling
2.3.2
  • [bugfix] Fixed #17 - Problems with spaces in path name
2.3.1
  • [enhancement] Updated README.md and plugin.xml
2.3.0
  • [enhancement] Issue #10 - Move, Copy, and Delete support
2.2.0
  • [enhancement] Improved notifications and event logging
2.1.2
  • [bugfix] Fixed #13 / #12 - java.io.IOException thrown for Windows file paths
2.1.1
  • [enhancement] Added icon to "Compile to CSS" Action in context menu
2.1.0
  • [enhancement] Issue #5 - Make CSS output directories more user friendly in preference pane
2.0.0
  • [enhancement] Issue #2 - Add "Compile to CSS" Action to context menu for .less files
1.9.5
  • [bugfix] Fixed #1 - Incorrect line number for errors when using imports
1.9.0
  • [enhancement] @import support
1.8.4
  • [enhancement] Don't output empty CSS files
1.8.3
  • [bugfix] Fixed MethodNotFoundException