lilacs
Version:
A web frontend building tool for teamwork, with automaticly compiling, merging, minifying, syncing files to server, supporting distributed servers, ensuring css or html files' inline reference with correct absolute path, and more.
44 lines (40 loc) • 1.08 kB
JavaScript
;
module.exports = {
/**
* network options, do following works:
* 1. how many machines
* 2. whether use distributed servers
* 3. how to ensure html/css inline reference
* ...
*/
networkOptions: [
{
servers: [
{
host: "xx.xx.xx.xx",
user: "user",
pass: "password",
remotePath: "remotePath"
}
]
}
// ...
],
/**
* build options, do following works:
* 1. whether minify html/css/js files
* 2. whether merge html/css/js files
* 3. whether make async load to sync
* ...
*/
buildOptions: [
{}
// ...
],
// extra directories to sync to remote, like images, fonts.
directoriesToSync: {
// format: key -> path
images: "images", // images' directory, relative to basePaths.webRoot
fonts: "fonts" // fonts' directory, relative to basePaths.webRoot
}
};