R
R
Ruslan Ruslanov2019-10-01 19:03:49
symfony
Ruslan Ruslanov, 2019-10-01 19:03:49

How to generate another entrypoint.json file?

I use symfony-webpack-encore-bundle.
I generate files for dev-env with yarn encore dev command.
files are generated in app/public/build, paths are written in the entrypoint, a la I build/app.js, build/app.css.
generate files for prod-env with the yarn encore prod command,
files are generated in app/public/build, paths are written in the entrypoint, a la build/app.qwe123.js, build/app.qwe123.css.
I need files to be generated in the same place, but the paths were written in this form:

app/public/build/app.qwe123.css,
app/public/build/app.qwe123.js.

how to implement it? while there are few entrypoints, and I rewrite with pens, but what will happen when there are more of them?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question