Linrstudio / snowpack-plugin-less

Use the Less compiler to build .less files from source

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

snowpack-plugin-less

Use the Less compiler to build .less files from source

Usage

Install

npm install --save-dev snowpack-plugin-less

Config

add this plugin to your Snowpack config:

snowpack.config.json

{
  "plugins": [
    "snowpack-plugin-less"
  ]
}

Use Custom Less Compile Options

snowpack.config.js

const path = require("path");

module.exports = {
  // ...another config
  "plugins": [
    [
      "snowpack-plugin-less",
      { /* less render options */ }
    ]
  ]
}

About

Use the Less compiler to build .less files from source

License:MIT License


Languages

Language:TypeScript 74.5%Language:JavaScript 23.9%Language:Shell 0.9%Language:Less 0.7%