anvil.less

LESS plugin for anvil.js

This plugin requires anvil.js version 0.8.* or greater.

anvil install anvil.less

If this plugin is installed and enabled, it will automatically minify .js files using the uglify-js node library.

Add the following snippet to the build.json:

"anvil.uglify": {
	"all": "true"
}

Add the following snippet to the build.json to compile only the listed files:

"anvil.uglify": {
	"include": [
		"./path/to/file1",
		"./path/to/file2",
		"./path/to/file4",
	]
}

Add the following snippet to the build.json to compile everything but the listed files:

"anvil.uglify": {
	"exclude": [
		"./path/to/file1",
		"./path/to/file2",
		"./path/to/file4",
	]
}