paritytech / parity-react-scripts

An extension of the react scripts for Parity-based dapps
3 stars 3 forks source link

Discussion: Adding more modules vs Staying close to CRA #8

Open amaury1093 opened 6 years ago

amaury1093 commented 6 years ago

In #2, #3, #4 you are adding more plugins on top of the default CRA webpack config. They are nice-to-have features, but I'm not sure they're necessary.

I would suggest to stay as close as possible to CRA, i.e. not to add any additional webpack plugins unless absolutely life-changing, for the following reasons:

More concretely, in react-scripts.config.js, I would:

cc @jacogr

ngotchac commented 6 years ago

So for the circular dependencies, it can be quite useful for resolving some bugs. It's actually always better to avoid having circular dependencies anyway, and this doesn't break anything, just adds some warnings.

Regarding post-css, it's actually already included in CRA. This just adds more plugins.