Angular 4: after running the command: ng build I have this structure
0.chunk.js favicon.ico polyfills.bundle.js.map
0.chunk.js.map index.html scripts.bundle.js
1.chunk.js inline.bundle.js scripts.bundle.js.map
1.chunk.js.map inline.bundle.js.map styles.bundle.js
2.chunk.js main.bundle.js styles.bundle.js.map
2.chunk.js.map main.bundle.js.map vendor.bundle.js
assets polyfills.bundle.js vendor.bundle.js.map
What is the difference between the
scripts.bundle.jsand thevendor.bundle.js?
I think difference is, that the scripts.bundle.js holds all external .js files and the vendor.bundle.js holds all created modules.
EDIT
but I can import
.jsfiles fromnode_modulesinto thevendor.bundle.jsand thescripts.bundle.js. What the best approach is: importing.jsfiles into modules or adding them into the.angular-cli.jsonsscriptsobject?
~Thanks a lot for your help!