Skip to content

Add ability to ignore files from final package when build in release #2776

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

Closed
dtopuzov opened this issue May 4, 2017 · 3 comments
Closed
Labels
Milestone

Comments

@dtopuzov
Copy link
Contributor

dtopuzov commented May 4, 2017

We have a lot of use cases when we need some files in debug mode, but we don't need them in release builds.

I've seen following in final packages:

Adding such feature will help users to optimize app size of final package.

@paxperscientiam
Copy link

Any progress?

@DimitarTachev DimitarTachev added this to the 6.0.0 milestone Apr 16, 2019
@rosen-vladimirov
Copy link
Contributor

As a workaround you can use weback to build your application. When you use webpack (i.e. --bundle) for building the application, only the files actually used by it will be included in the bundle. This way you'll never receive .d.ts, .tgz, tests, etc. in case you are not importing them in your application's code.

@rosen-vladimirov
Copy link
Contributor

I'm closing this issue as in NativeScript 6.0 we'll support only bundle workflow in which the mentioned files are not included anymore. Webpack will include only the required files, so we consider this issue as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants