-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how do i get cli to copy random files to dist folder? #2202
Comments
This capability was lost a few weeks ago - you and I and others are eagerly hoping for its return. I feel like there is an inevitable opening for such a mechanism to be misused, so it would be great to do without it - but without it, too many projects will be driven away from CLI. Therefore, I hope it returns.) (For some use cases you can work around it by copying extra files to "dist" after running |
Im writing a chrome extension in Angular 2 with the cli and chrome extensions need a manifest.json file in the root of the app, so I would really like this feature back as manually copying files sucks! :( |
I am on 1.0.0-beta.14 Look in your angular-cli.json file for "assets" under "apps". The default value is "assets", which represents the name of the folder you need to create under your "src" folder. This folder, and its contents, will be copied to the "dist" folder during "ng build". Of course you can change the name of this folder to whatever you want, as long as it matches what is in your angular-cli.json file. IE: src -> myAssets |
This works |
How do you get it to copy a file that exists in the root /src/manifest.json |
I'm trying to build a PWA and need to move the manifest.json to the root. Currently I am moving this with a shell copy script but would be nice to incorporate this into the ng build process. |
On the next release, this should be available: #2570 |
write manifest.son in assets, file anuglar-cli.json
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
versions: angular-cli: 1.0.0-beta.14
node: 5.10.1
i needed to copy random files into the dist folder. it's not clean from the the documentations how to accomplish the same.
appreciate any help.
thanks in advance.
The text was updated successfully, but these errors were encountered: