nightmode/feri

Include file type for concatenating files.

Closed this issue · 1 comments

Would be super cool to have a file type like ".include" to enable concatenating files.

An ".include" could be a simple text file with each line being a glob or string of what to include. For example, a file called "all.js.include" have a line that says "*.js" in it. All JS files from the source directory would end up in a destination file called "all.js".

Make sure not to include files multiple times in the case of multiple include strings / globs. Do not include self either.

Extra bonus points for source maps as long as they do not delay the release of this feature. Can always release basic ".include" files and then add a new enhancement issue for source maps.

Done with extra bonus points for source maps. ^_^

Files are called .concat so they are not confused with include files like _include.js.