https://github.com/fansenze/snowpack-plugin-less
Use the Less compiler to build .less files from source
https://github.com/fansenze/snowpack-plugin-less
less snowpack snowpack-plugin style
Last synced: 2 months ago
JSON representation
Use the Less compiler to build .less files from source
- Host: GitHub
- URL: https://github.com/fansenze/snowpack-plugin-less
- Owner: fansenze
- License: mit
- Created: 2020-08-07T09:54:14.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-19T02:16:38.000Z (over 4 years ago)
- Last Synced: 2025-03-28T08:41:35.417Z (3 months ago)
- Topics: less, snowpack, snowpack-plugin, style
- Language: TypeScript
- Homepage:
- Size: 107 KB
- Stars: 14
- Watchers: 1
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# snowpack-plugin-less
Use the [Less](https://github.com/less/less.js) compiler to build `.less` files from source## Usage
### Install
```bash
npm install --save-dev snowpack-plugin-less
```### Config
add this plugin to your Snowpack config:**snowpack.config.json**
```json
{
"plugins": [
"snowpack-plugin-less"
]
}
```### Use Custom Less Compile Options
**snowpack.config.js**
```javascript
const path = require("path");module.exports = {
// ...another config
"plugins": [
[
"snowpack-plugin-less",
{ /* less render options */ }
]
]
}
```