https://github.com/stealjs/steal-less
A less plugin for StealJS
https://github.com/stealjs/steal-less
Last synced: 6 months ago
JSON representation
A less plugin for StealJS
- Host: GitHub
- URL: https://github.com/stealjs/steal-less
- Owner: stealjs
- License: mit
- Created: 2015-03-04T20:29:43.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-06-01T01:55:54.000Z (almost 5 years ago)
- Last Synced: 2024-11-11T19:38:47.530Z (6 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/steal-less
- Size: 109 KB
- Stars: 4
- Watchers: 16
- Forks: 2
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://travis-ci.org/stealjs/steal-less)
[](http://badge.fury.io/js/steal-less)# steal-less
This is a plugin for [StealJS](http://stealjs.com/) that makes it easy to work with [less](http://lesscss.org/) files.
## Usage
Install `steal-less` as an npm dependency:
```shell
npm install steal-less --save-dev
```Next, add `steal-less` under `plugins` in the `steal` section of your `package.json`:
```json
{
"name": "your-project",
...
"steal": {
"plugins": [
"steal-less"
],
...
}
}
```Once installed, `steal-less` allows you to import/require/steal Less files within your project:
```js
// ES6
import "style.less";// AMD
define(["style.less"],function(){ ... });// CommonJS
require("style.less");// steal
steal("style.less")
```## Contributing
Want to help make `steal-less` even better? See [`CONTRIBUTING.md`](CONTRIBUTING.md).
Looking for a changelog? Try the [releases page on GitHub](https://github.com/stealjs/steal-less/releases).