Can I only combine js files with encore?

I have symfony project with twitter bootstrap template (hardcoded assets in twig). I would like manage assets with Encore, but if encore process file, make module and next compilation magic.

Is any way how to config Encore for only combine js, without compilation?

Basic install Encore:

…and my idea, in file app.js:

include '1-file.js'; // alert(1);
include '2-file.js'; // alert(2);

and output in twig:

merged.js // alert(1); alert(2);

thanks for any advice

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *