This script compiles all .js files from the ./src js folder to es6. These are saved individually! The path remains the same, only ./src/js becomes ./build/js. This is important! I do not want to have bundle.js.
When I call this task, every time all .js files are compiled. However, only currently changed files should be compiled. But how? How can I add this into my task?
This script compiles all
.js
files from the./src
js folder to es6. These are saved individually! The path remains the same, only./src/js
becomes./build/js
. This is important! I do not want to havebundle.js
.When I call this task, every time all
.js
files are compiled. However, only currently changed files should be compiled. But how? How can I add this into my task?package.json (part of it):
gulpfile.js:
In my SASS task it was easy: