Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

customize-engine-less

bootprint8.9kMIT4.0.4

A less-engine for customize

readme

customize-engine-less

NPM version

A less-engine for customize

Installation

npm install customize-engine-less

Usage

The following example demonstrates how to use this module:

const customize = require('customize')

// Load files from one directory and merge with second
customize()
  .registerEngine('less', require('customize-engine-less'))
  // Add one less file
  .merge({
    less: {
      main: require.resolve('./main.less')
    }
  })
  // Add another less file overriding some variables
  .merge({
    less: {
      main: require.resolve('./override.less')
    }
  })
  .run()
  .then(console.log)

This will generate the following output

{ less:
   { 'main.css':
      'div{color:red;background-color:green}/*# sourceMappingURL=main.css.map */',
     'main.css.map':
      '{"version":3,"sources":["/home/nknappmeier/projects/bootprint/bootprint-monorepo/packages/customize-engine-less/examples/main.less"],"names":[],"mappings":"AAGA,IACE,SAAA,CACA","sourcesContent":["@textcolor: blue;\\n@bgcolor: green;\\n\\ndiv {\\n  color: @textcolor;\\n  background-color: @bgcolor;  \\n}\\n\\n\\n\\n"]}' } }

NodeJS compatibility notes

This package will always support the latest version of NodeJS and as well as the current LTS version. In the future, it will not be considered a breaking change to drop support of a pre-LTS version of NodeJS.

License

customize-engine-less is published under the MIT-license.

See LICENSE.md for details.

Release-Notes

For release notes, see CHANGELOG.md

Contributing guidelines

See CONTRIBUTING.md.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

4.0.4 (2020-01-27)

Note: Version bump only for package customize-engine-less

4.0.1 (2020-01-01)

Note: Version bump only for package customize-engine-less

4.0.0 (2019-12-30)

Note: Version bump only for package customize-engine-less

Change Log

This project adheres to Semantic Versioning.

Version 3.0.0 (Fri, 15 Feb 2019 20:58:44 GMT)

  • 7475438 chore: drop support for pre-LTS versions of NodeJS (BREAKING) - Nils Knappmeier
  • 41a8eb6 chore: bump dependency versions - Nils Knappmeier

Version 2.0.0 (Sun, 09 Apr 2017 09:00:42 GMT)

  • 8b97629 Bump devDepenency to thought@1.1.2 - Nils Knappmeier
  • 183d199 Remove obsolete "npm install istanbul" in travis.yml - Nils Knappmeier
  • 1833ce5 Add test for including raw css files - Nils Knappmeier
  • 19b4e3b Remove dependency on 'q' and 'lodash' - Nils Knappmeier
  • 54b1545 BREAKING: Drop support for nodejs before 6 + much chore - Nils Knappmeier
  • 5752078 docs(readme): add Greenkeeper badge - greenkeeper[bot]
  • 96ce5bb chore(package): update dependencies - greenkeeper[bot]

Version 1.0.1 (Mon, 13 Feb 2017 22:49:04 GMT)

  • 30c364c Generate source-map reference into css-files - Nils Knappmeier

Version 1.0.0 (Tue, 20 Dec 2016 14:13:40 GMT)

  • f3ac701 Update node versions in TravisCI configuration - Nils Knappmeier
  • dfcb71b Use "standard --fix" instead of "standard --format" to format code - Nils Knappmeier
  • 563c107 Register pre-push hook - Nils Knappmeier
  • 0d01b6b Bump customize-dependency to ^1.0.0 - Nils Knappmeier
  • 3d8ab93 Type correction in configuration reference - Nils Knappmeier
  • 132fd78 Add some simple tests. Run tests with trace-and-clarify-if-possible - Nils Knappmeier
  • 65ff2bb Fix configuration-schema - Nils Knappmeier

Version 0.2.6 (Thu, 24 Nov 2016 22:14:45 GMT)

  • 70a86d9 Import CSS-files with the "(inline)"-option (fixes bootprint/bootprint#16) - Nils Knappmeier

Version 0.2.5 (Mon, 09 May 2016 20:56:37 GMT)

  • a7ce66d Bump less to version 2.7.1 - Nils Knappmeier

Version 0.2.4 (Mon, 09 May 2016 20:24:25 GMT)

Version 0.2.3 (Tue, 15 Mar 2016 14:03:18 GMT)

  • d3f4fc7 Add "require" to main-spec in order to get (low) coverage - Nils Knappmeier
  • 5b70ade Adjust travis-configuration - Nils Knappmeier
  • 6fea911 Added dummy test - Nils Knappmeier
  • d1a50f2 Move to bootprint-organization and enable ghook for StandardJS - Nils Knappmeier

v0.2.2 - 2015-12-20

Fix

  • Added description to schema.js

v0.2.1 - 2015-10-19

Fix

  • Add files-property to package.json

v0.2.0 - 2015-10-15

Add

  • Added schema for input validation

v0.1.0 - 2015-10-05

Add

  • Necessary methods to add support for customize-watch

v0.0.1 - 2015-09-30

Initial version