Releases: emberfeather/less.js-middleware
3.1.0
3.0.1
Less 3 Support
Upgraded Less to version 3.
Bug Fix Release
Fixing bug #123 with the less file imports not having the information needed to invalidate the cache based on imported file changes.
Added the preprocess.importPaths
to allow for changing the import paths based on the request variables.
Less 2.4 Compatibility
Updating to the latest version of Less to enable all the new features, especially the ability to use less plugins!
Comes with some breaking changes, be sure to consult the readme for the current options.
- Upgraded to the 2.4 version of Less.
- Updated dependencies to the latest versions.
- Removed
options.parser
since Less is simplifying to just arender
function. - Using
options.render
for passing through all rendering options directly to the less rendering. - Added
postprocess.sourcemap
option for modifying the sourcemap. - Added
storeSourcemap
option for manipulating the sourcemap storage. - Removed pre
0.1.x
warning
SourceMap and Caching
This release includes improvements by @neekey and @viveksjain targeting sourcemap improvements and caching.
With the improvements from @neekey, the sourcemap option for the compiler should be better at returning the correct line numbers in the css map.
Working with large numbers of less
files also became easier thanks to @viveksjain who implemented a cacheFile
for saving "the imports (in JSON format) to the given cacheFile
on exit." This can greatly improve startup time when nothing has changed in the fines.