* [bug] can not load script after reading model config
Warning: it can not load script for registered "require" file extension.
This commit is contained in:
parent
6b8c0058e4
commit
6c4b025ebf
|
@ -114,9 +114,10 @@ function fixFileExtension(filepath, files, onlyScriptsExportingFunction) {
|
||||||
var otherFile;
|
var otherFile;
|
||||||
|
|
||||||
/* Prefer coffee scripts over json */
|
/* Prefer coffee scripts over json */
|
||||||
|
//TODO: Warning : can not laod script for the registered file extenstions.
|
||||||
if (isPreferredExtension(filepath)) return filepath;
|
if (isPreferredExtension(filepath)) return filepath;
|
||||||
|
|
||||||
var basename = path.basename(filepath, FILE_EXTENSION_JSON);
|
var basename = path.basename(filepath, path.extname(filepath));
|
||||||
var sourceDir = path.dirname(filepath);
|
var sourceDir = path.dirname(filepath);
|
||||||
|
|
||||||
files.forEach(function(f) {
|
files.forEach(function(f) {
|
||||||
|
|
Loading…
Reference in New Issue