0.2.5 • Published 9 years ago

patternplate-transform-less v0.2.5

Weekly downloads
12
License
MIT
Repository
github
Last release
9 years ago

patternplate-transform-less stability

npm version Travis branch Appveyor branch

Process LESS with patternplate.

Installation

npm install --save patternplate-transform-less

Configuration

Tell patternplate to load the less transform

// configuration/patternplate-server/transforms.js
module.exports = {
	less: {
		inFormat: 'less',
		outFormat: 'css',
		opts: {
			// pass less options here.
		}
	}
};

Use the configured transform for pattern format transformation

// configuration/patternplate-server/patterns.js
module.exports = {
	formats: {
		less: {
			transforms: ['less']
		}
	}
};

Less plugins

Install less plugins separately and configure them in the less transform options under the plugins key:

npm install --save less-plugin-autoprefix
// configuration/patternplate-server/transforms.js
module.exports = {
	less: {
		inFormat: 'less',
		outFormat: 'css',
		plugins: {
			autoprefix: {
				enabled: true // load less-plugin-autoprefix,
				opts: { // pass .opts as options into the plugin constructor
					browsers: ['last 2 version']
				}
			}
		}
	}
};

See also


Copyright 2016 by SinnerSchrader Deutschland GmbH and contributors. Released under the MIT license.

2.0.2

9 years ago

2.0.1

10 years ago

2.0.0

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago