0.0.4 • Published 10 years ago

quick-compile v0.0.4

Weekly downloads
18
License
-
Repository
github
Last release
10 years ago

quick-compile

This is a very easy to use file concatenator and writer.

Example

This script reads all the files in ./vendors/css and then combines them with the files in ./files/css and then writes them to resources/styles.css

var quickCompile = require("quick-compile")

var options = {
	files: {
		"resources/styles.css": ["./vendors/css", "./files/css"]
	},
	separator: "\n"
}

compiler = new quickCompile(options)

compiler.generate()

Options

quick-compile has many useful options that help you configure the way files are concatenated.

  • files - String or Array of the path or files you are targetting (required)

  • separator - String used to separate the files (before compiling)

  • compiler - Function that returns modified src, useful for minifying

  • regex - RegExp that is used to determine which files you are targetting

  • log - Function that handles output from quick-compile, can be set to false

  • cacheFile - String of the path to a file a hash cache can be saved to.

More examples are available in the examples folder.

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago