'ng build' dist directory - need the ability to nest .js files in defined directory
I understand you can place directories in the public folder to be moved over to the dist directory.
However, for my deployment environment I need the ability to nest .js files(polyfills.bundle.js, main.bundle.js, and inline.js) in their own /js/ directory. Where can this be defined?
+1
There isn't a way to define a subfolder where bundles are generated. I suppose you can do ng build and then process the result to put them in a folder, and change the script tags.
Did you find any solutions for this?
This is really old.. In today's cli you can define what gets copied to the dist directory within your "assets" array within your angular-cli.json.
{
"project": {
"name": "yourApp"
},
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
....
}
}
So how do we modify this config to copy production bundle files (generated from ng build --prod) to an "assets/js" folder?
what is the status for this issue?. I have been facing this issue since 4 hours. Please post working steps and make me happy:) thanks in advance.
Note: my project is on angular 5
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.