fd-gulp-jsconcat
Version:
concat js files according to those rules listed on this page(http://wd.alibaba-inc.com/doc/page/work/cbu-regulations/merge)
10 lines (9 loc) • 380 B
JavaScript
module.exports = {
PLUGIN_NAME: 'fd-gulp-jsconcat',
JS_IMPORT_RE: /^\s*ImportJavscript\.url\((["'])(.*?)\1\)\s*;?\s*$/,
JS_MERGE_COMMENT_RE: /\/\*merge start\*\/(?:[\w\W]*)\/\*merge end\*\//,
COMPRESS_FLAG_RE: /\/\*!!cmd:compress=true\*\//,
COMPRESS_OPT: /\/\*!!cmd:jsCompressOpt=\[(.*)\]\*\//,
CONV_TO_UNICODE_RE: /\/\*!!cmd:conv2unicode=true\*\//,
NEWLINE_RE: /\r?\n/g
}