xiongwilee / gulp-requirejs-boilerplate

gulp+requirejs+less多应用编译构建方案
72 stars 20 forks source link

这个编译工具不支持以 u开头的文件夹 #2

Closed tangyuhui closed 6 years ago

tangyuhui commented 7 years ago

例如,在示例项目中的js目录下,新建一个utils文件夹,项目会打包编译失败。经实验,只要是以小写u开头的文件夹,都将通不过编译。

image

xiongwilee commented 7 years ago

这个test.js里是不是有es6的语法?

tangyuhui commented 7 years ago

没有任何es6的语法。里面只有console.log(); 你可以试一下。只要是小写u开头的文件夹,就无法编译通过。

xiongwilee commented 7 years ago
➜  gulp-requirejs-boilerplate git:(master) ✗ npm run build

> koa-grace-cli@2.0.44 build /Users/xiongweilie/projects/github/gulp-requirejs-boilerplate
> gulp build --mod=example --env=production

[17:03:39] Using gulpfile ~/projects/github/gulp-requirejs-boilerplate/gulpfile.js
[17:03:39] Starting 'build'...
[17:03:39] Starting 'clean'...
[17:03:39] Finished 'clean' after 61 ms
[17:03:39] Starting 'build:image'...
[17:03:39] Finished 'build:image' after 39 ms
[17:03:39] Starting 'build:css'...
[17:03:39] Finished 'build:css' after 268 ms
[17:03:39] Starting 'build:js'...
[17:03:39] Optimizing example/static/js/app.js
[17:03:41] Optimizing example/static/js/require.config.js
[17:03:41] Optimizing example/static/js/test.js
[17:03:41] Optimizing example/static/js/lib/jquery-2.1.3.min.js
[17:03:42] Optimizing example/static/js/lib/require.js
[17:03:42] Optimizing example/static/js/utils/jquery-2.1.3.min.js
[17:03:42] Optimizing example/static/js/utils/require.js
[17:03:42] Finished 'build:js' after 3.44 s
[17:03:42] Starting 'build:html'...
[17:03:42] Starting 'build:copy'...
[17:03:43] Finished 'build:copy' after 11 ms
[17:03:43] Finished 'build:html' after 86 ms
[17:03:43] Finished 'build' after 3.9 s
➜  gulp-requirejs-boilerplate git:(master) ✗

我这儿没有问题,会不会是windows的问题或者Nodejs版本啥的?