Skip to content

Latest commit

 

History

History

pack-less

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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