W
W
Waldemar10102020-04-04 21:40:38
JavaScript
Waldemar1010, 2020-04-04 21:40:38

How to make the correct build of rollup.js?

5e88d3062183a118224511.png

1) In the first screenshot, the src folder, which has index.html to which app.js is connected
2) Using rollup.js, I build the project in the dist folder, compile app.js to app.esm.js, and build the app file in dist .html

5e88d3d19caf2686067380.png

3) Everything would be fine, only there is one app.html file that is assembled with the connected app.esm.js script and the old app.js, so the essence of the question is how to build the project so that scripts from the dev folder do not get into html

5e88d475718ca812286504.png

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