You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is just webpack config extending, not react-scripts build. And there are no beautiful console logs, comparison of the build sizes and other react-scripts build command features.
With suggested feature - it is possible to use start/test/build scripts but with custom configs.
The text was updated successfully, but these errors were encountered:
We don't plan to expose Webpack config. That CRA uses Webpack is an implementation detail. If something that fits our use case better comes along, we will switch to that instead, and we don't want this to be a burden to our users. Therefore we don't intend to make Webpack usage explicit until you eject.
I expected such your answer :)
But anyway decided to request the feature. At medium post Why I love Create React App I tried to describe why I love CRA and why I don't want to eject.
I'm happy to consider feature requests on case by case basis. For example I think we could enable OfflinePlugin by default. I just don't know enough about it so I have been postponing this until a later stage.
lockbot
locked and limited conversation to collaborators
Jan 22, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
TLDR
very very simple example:
An same for test / build.
Change webpack config — add plugins and change entry point
I have two situation when I have to do this:
Another case - start or build Create React Application from another node script. Right now it is possible with spawn:
With suggest feature this should be more beautiful.
There is the workaround how to implement it. I wrote about it at Why I love Create React App
Add
build:custom
to npm-scripts:And then create
scripts/webpack.js
:There is just webpack config extending, not react-scripts build. And there are no beautiful console logs, comparison of the build sizes and other react-scripts build command features.
With suggested feature - it is possible to use start/test/build scripts but with custom configs.
The text was updated successfully, but these errors were encountered: