UNPKG

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.

14 lines (10 loc) 425 B
"use strict"; var _ = require('lodash'); module.exports = (config) => { // has replacing in html config.hasHtmlReplace = config.htmlReplace && !!_.keys(config.htmlReplace).length; // has inserting in html config.hasHtmlInsert = config.htmlInsert && !!_.keys(config.htmlInsert).length; // has converting to other extension file in html config.hasHtmlToSpecifiedExt = !!config.htmlToSpecifiedExt; };