-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Add ability to configure Webpack plugins without eject #1592
Comments
@shai32 No. There's been a lot of discussion regarding this, we don't currently expose webpack config to user, if you don't want to eject, you can maintain a fork https://medium.com/@shubheksha/tweaking-configuration-for-react-scripts-in-create-react-app-d91e9d03a42f#.wrtg9nbb1. This decision is made so we can transparently move to other module bundler without affecting external api. If you try other hacks to configure cra's webpack config, it's not guaranteed that the hack will work when react-scripts update. I think if you are comfortable with webpack you can just fork or eject :) |
Ok, I agree with this approach. |
Autofix has known problems with eslint-loader, sometimes entering infinite cycles. I would not recommend using it in this setup. It also wouldn't be very useful because our lint rules intentionally don't include any style rules. For enforcing style, I recommend you to try Prettier which works fine without ejecting.
You can express support for it in this PR: #1216. |
I am missing 2 things that I like in my project and I don't want to eject.
adding them can be done with a simple configuration in webpack.
plugins: [
new StyleLintPlugin(),
new webpack.LoaderOptionsPlugin({
options: {
eslint: { fix: true },
},
}),
]
can we add plugins to webpack without eject?
The text was updated successfully, but these errors were encountered: