简体   繁体   中英

How to programmatically remove packages and exclude directory during meteor deploy/bundle

There are certain packages and directories I use only for development purposes within a project. Does meteor provide a way to remove them during meteor deploy or bundle?

You can make meteor ignore directories by placing a . in front of them. Meteor will completely ignore them, including packages.

I'm not too sure you can do this of packages because you would have used it in your app somehow and it would be linked up. You can either have the package or you can't.

Alternatively you could make a bashscript that copies the required directories to a new directory for bundling/publishing

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM