Closed SunburnedGoose closed 9 years ago
I haven't been able to verify this locally, but if this is indeed the case it appears like it would be an issue upstream with grunt-babel or babel. @silvenon are you able to repro?
Just a sanity check. I just generated a new app, added a file to the /script folder with multiple dots in the name. The app fails when I run grunt serve.
Working as intended (by grunt). Read the grunt docs. This can be solved with the extDot
option.
Thanks!
On Sun, Aug 23, 2015 at 11:30 AM Sindre Sorhus notifications@github.com wrote:
Closed #593 https://github.com/yeoman/generator-webapp/issues/593.
— Reply to this email directly or view it on GitHub https://github.com/yeoman/generator-webapp/issues/593#event-389840754.
The preference for naming conventions in my scripts folder are files with multiple dots in the name:
When these files are processed by babel, only the prefixed is retained:
This will cause a problem when loading my page with 'grunt server' as the babel processed files will not be loaded by my webpage, and instead I'm getting the ES2015 content and the error messages.
If I comment out line 147 in the Gruntfile.js and remove the ext: '.js' from the babel dist configuration, then I can keep my full file name in the grunt processed files.