@packmule/less-pack
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

Less Pack npm-latest

Compile less to CSS.

Overview

Setup

Less Pack is included in the complete edition.

Current Release

npm install --save-dev @packmule/less-pack less

Nightly Build

npm install --save-dev @packmule/less-pack@nightly less

API

LessPack()
    .include(glob: string)
    .modules()

Hints

  • optimize - Enables or disables minification of the generated CSS.
  • debug - Controls generation of source maps for the generated CSS.
  • lint - Defines whether code linting via stylelint is enabled or not.
  • fix - Defines whether code fixing via stylelint is enabled or not.
  • extract - Used to determine if actual CSS files are being created.
  • hash - Configures whether file name hashing is enabled or not.

Usage

Example

Configure compiling less to CSS.

import Packmule from '@packmule/core';
import LessPack from '@packmule/less-pack';

const packmule = new Packmule();
packmule.add(new LessPack());
return packmule.generate();

License

MIT


Package Sidebar

Install

npm i @packmule/less-pack

Weekly Downloads

109

Version

2.1.0

License

MIT

Unpacked Size

10.4 kB

Total Files

11

Last publish

Collaborators

  • t.esterer
  • thasmo