You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to add a file to the build system (dist) folder #2613
Can someone please let me know how to add a simple file to the build system in angular-cli. For example, i want to keep a file called web.config in dist folder when the build is created. If i simply put it in my /src/ folder, it doesn't get copied. I am using beta.17 version of Angular-cli.
The config key apps.assets accepts an array as of beta.17. You can now do the following.
"assets": [
"assets",
"favicon.ico"
]
hey, now apps.assets refer to the ".angular-cli.json" right, if so, I added staticfile.txt in the assets array, but when I run "ng build --prod" command , it didn't create staticfile.txt in the dist folder.
angular-automatic-lock-bot commented on Sep 9, 2019
Activity
grizzm0 commentedon Oct 9, 2016
The config key apps.assets accepts an array as of beta.17. You can now do the following.
hassanasad commentedon Oct 10, 2016
I did try that - but its still not copying it.
This is my app.assets:
"assets": ["assets", "web.config"]I ran the command
ng build --prodStill no web.config in
distfolder even though its present in /src/hassanasad commentedon Oct 10, 2016
Actually - when i make
app.assetsan array, i dont even get myassetsfolder in thedistfolder.grizzm0 commentedon Oct 10, 2016
Sorry, my fault. It was merged after beta.17 was released. It's currently in master and will be released with beta.18.
See: #2570
hassanasad commentedon Oct 10, 2016
oh - thanks grizzm0. Guess nothing more to do other than to wait for beta.18 :)
grizzm0 commentedon Oct 10, 2016
@filipesilva Could you close?
bdv1234 commentedon Jul 4, 2019
hey, now apps.assets refer to the ".angular-cli.json" right, if so, I added staticfile.txt in the assets array, but when I run "ng build --prod" command , it didn't create staticfile.txt in the dist folder.
angular-automatic-lock-bot commentedon Sep 9, 2019
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.