mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
feature(util) checkExtension -> checkExt
This commit is contained in:
parent
8a4d6bb28f
commit
d31a166e52
3 changed files with 27 additions and 31 deletions
|
|
@ -209,7 +209,7 @@
|
|||
AppCache.watch(name);
|
||||
|
||||
name = Path.join(DIR, name);
|
||||
check = checkExtension(name);
|
||||
check = checkExt(name);
|
||||
result = isMin && check;
|
||||
|
||||
Util.ifExec(!result,
|
||||
|
|
@ -250,7 +250,7 @@
|
|||
names[i] = name;
|
||||
|
||||
if (config.minify) {
|
||||
check = checkExtension(name);
|
||||
check = checkExt(name);
|
||||
|
||||
if (check) {
|
||||
minName = Minify.getName(name);
|
||||
|
|
@ -270,10 +270,10 @@
|
|||
});
|
||||
}
|
||||
|
||||
function checkExtension(name) {
|
||||
function checkExt(name) {
|
||||
var ret;
|
||||
|
||||
ret = Util.checkExtension(name, ['.js', '.css', '.html']);
|
||||
ret = Util.checkExt(name, ['js', 'css', 'html']);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue