New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-lessless

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-lessless

compile LESS into CSS, change links to point to the CSS files, remove less.js from page

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

grunt-lessless

Grunt plugin for lessless, a tool that compiles LESS into CSS, changes links to point to the CSS files, removes less.js from HTML page(s). Very handy when you're using less.js in the browser but want to deploy CSS.

Getting Started

Install this grunt plugin next to your project's Gruntfile with: npm install grunt-lessless

Then add this line to your project's Gruntfile:

grunt.loadNpmTasks('grunt-lessless');

Documentation

Add this to your Gruntfile.js:

lessless: {
  buildDir: 'path/to/frontend-build'
}

If you're using RequireJS then buildDir should match dir from your requirejs settings. With grunt you can even point to the same variable:

lessless: {
  buildDir: '<%= requirejs.compile.options.dir %>'
}

There are also two optional settings:

lessless: {
  buildDir: 'path/to/frontend-build'
  styleDirs: ['path/to/my/extra/styles'], //directories to look in for imports. usually don't need since any folder containing a .less file gets added to this automatically
  stripExtensions: ['jsp', 'html'] //file extensions that have links to .less files. Defaults to just .html files.
}

So a Java project would typically set stripExtensions to ['jsp', 'html'] and a .NET project would set it to ['cshtml', 'html'].

Release History

0.1.0 initial release.

License

Copyright (c) 2012 Dave Geddes
Licensed under the MIT license.

Keywords

FAQs

Package last updated on 23 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc