-
Notifications
You must be signed in to change notification settings - Fork 7
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
Only copy dependencies (and not devDependencies) #29
Comments
I haven't figured out a good way to accomplish this, and I'm also not sure it's a good idea. Every file that this plugin copies is ostensibly one that is contributing to your output code bundle, and so is arguably a runtime dependency whether or not you have it marked as a As far as the hurdles to adding this functionality to the plugin, the plugin would first need to figure out which package a given file belongs to. Aside from some messy logic looking for |
I like your suggestion, @304NotModified. However, you can achieve the same by only including this plugin for a desired environment:
|
I don't believe that helps. Whether webpack is running in production mode and whether dev dependencies are involved are two separate questions. Webpack itself is a dev dependency, after all. |
What are you trying to do?
I like to copy only the dependencies, and not the devDependencies
What feature or behavior is this required for?
For some cases we don't like to scan the devDependencies - although there are needed for running some tests
How could we solve this issue? (Not knowing is okay!)
Have the setting:
devDependencies: false
Anything else?
Thanks!
The text was updated successfully, but these errors were encountered: