-
Notifications
You must be signed in to change notification settings - Fork 191
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
How to use it with react-scripts? #87
Comments
Create-react-app, or their internal set of scripts provided by react-scripts currently does not support adding additional webpack plugins. Check out this issue for a reasoning why: facebook/create-react-app#99. If you want to use it, you will have to eject, which gives you the full breath of config options. Note that this is a non-reversible option. |
I am not very experienced in CRA but @timosta sound correct. CRA seem to not allow webpack plugins by default and you have to "eject" to add your own plugins. |
Aside from that, there's also React-App-Rewired, which might help you, adding Webpack and Babel things without ejecting. |
I already have been using
|
How to use it with react-scripts where you don't necessarily have the config file?
const Jarvis = require('webpack-jarvis');
/* the rest of your webpack configs */
plugins: [
new Jarvis({
port: 1337 // optional: set a port
})
]
The text was updated successfully, but these errors were encountered: