0

I'm looking for a way to concatenate imports or something alike from JavaScripts files which are being processed/minified by Gulp. This would allow for dynamically including/excluding plugins while not having to restart the gulp process.

Say Gulp is processing file xxx.js and that file got an import or something alike in it, i would like it to be inlined in xxx.js instead of ending up as an require('zzz.js')

2 Answers 2

1

I use Webpack nowadays which does everything I want

Sign up to request clarification or add additional context in comments.

Comments

0

if you just want to incude/inline a file into another, try https://github.com/coderhaoxin/gulp-file-include works also for anytype of file so also .js files

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.