How to combine angular package with Electron

When i try to combine angular package with Electron,it’s something wrong with html.The
html shows differnt with two methods.
The app starts with ‘electron .’ run correctly,while starts with ‘npm start’ take erros with html.

after delete the node_modules,two methods run and show html corretly.
but it’ll take erros when packaging.