node package manager

anvil.cssmin

Cssmin extension for anvil.js

This requires anvil.js version 0.9.* or greater.

anvil install anvil.cssmin

If this extension is installed and enabled, it can minify .css files using the cssmin node library.

Add the following snippet to the build.json:

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

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

"anvil.cssmin": {
	"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.cssmin": {
	"exclude": [
		"./path/to/file1",
		"./path/to/file2",
		"./path/to/file4",
	]
}

Note: you can also use minimatch style blobs to match multiple files for inclusion or exclusion. For example, the blob to match all files under a specific folder's tree would be: "/folderToMinify/*/.css"