copy images results in ePerm error for build.dev
adding *.jpg, *.png to /app causes build to fail.
in reading through tickets, tried to include images in various folders as indicated; build fails with a message about unable to open.
Expected/desired behavior image files are copied to same relative location in dist/dev|prod folder
Hey, thanks for the issue! Please share some more details:
How does the build fail? What message do you get? How do you copy the resources?
- npm start
- copy using windows explorer to move the files to /apps/img
- initially everything appears to work.
- stop and run npm start again
- observe error: occurs on different files when run regardless of type (jpg|png)
files are copied, error seems to occur after first copy.
root cause:
1. clean.dev is commented initially in build.dev
2. coder was up too late and needed rest .then(coffee)
perhaps clean.dev should not be commented initially, or a more friendly error message somehow? This seems like it will become a common issue that would be perceived as an error as the seed is adopted.
// -------------- // Build dev. gulp.task('build.dev', (done: any) => runSequence(//'clean.dev', // 'tslint', // 'css-lint', 'build.assets.dev', 'build.html_css', 'build.js.dev', 'build.index.dev', done));
tslint, css-lint makes potential sense to have commented; maybe clean.dev should be uncommented by default.
that resolves my issue, though it could be a problem in a different or larger project than mine. I'll let you determine whether to close.
Thanks!
Yes, the dist/dev directory gets cleaned each time you change any of the watched fines in app. You need to add a gulp task which copies the resources you need.
um, negative. currently, by default, it does NOT get cleaned. I had to uncomment the clean statement. As is, the build correctly copied the files once the clean statement was uncommented.
by default gulp.task('build.dev', (done: any) => runSequence(//'clean.dev',
should probably be: gulp.task('build.dev', (done: any) => runSequence('clean.dev',