Snowpack: Automatically install devDependencies?

Created on 29 Mar 2019  路  5Comments  路  Source: snowpackjs/snowpack

Before anything else, I just want to give you guys some props for this awesome project. Grat work! 馃帀

Now over to my question. I was just wondering if there is any particular reason why pika ignores devDependences by default (unless webDependenceies is set in package.json). Am I missing something?

Most helpful comment

Thanks @FredKSchott! That was kind of the answer I expected 馃憤
There are no stupid questions, right 馃槃

All 5 comments

Why would you need a dev dependency when you run your application in production?

This setup works great in out dev mode, but not in our production setup. It can be solved through webDependencies so it's not an issue, just a question 馃槃

Thanks @mfolkeseth! The only reason was that a project could have a lot of devDependencies, and most of the related to node.js tooling, so most of them wouldn't make sense for the web. I think that still makes sense as a default, especially since the whitelist exists.

Trying to be good about moving feature discussions to Spectrum聽(and keeping Github issues for bugs & prs) so feel free to continue the discussion here -> https://spectrum.chat/pika/pika-pack/automatically-install-devdependencies-31~0f6032df-f1f3-4145-9be4-395683e49c17

Thanks @FredKSchott! That was kind of the answer I expected 馃憤
There are no stupid questions, right 馃槃

RIGHT! :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FredKSchott picture FredKSchott  路  4Comments

FredKSchott picture FredKSchott  路  5Comments

FredKSchott picture FredKSchott  路  5Comments

devongovett picture devongovett  路  4Comments

FredKSchott picture FredKSchott  路  4Comments