-
Notifications
You must be signed in to change notification settings - Fork 23
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
Update to shakapacker gem #27
Conversation
c466487
to
d6188ba
Compare
|
||
return resultConfig; | ||
return resultConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are needed if you're using React JSX.
} | ||
} | ||
|
||
module.exports = envSpecificConfig() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We now have a single configuration file.
Here's the shim for loading the older style of a file per value of NODE_ENV, the:
/config/webpack/test.js
/config/webpack/development.js
/config/webpack/production.js
}, | ||
"devDependencies": { | ||
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.1", | ||
"fork-ts-checker-webpack-plugin": "^6.0.1", | ||
"react-refresh": "^0.9.0", | ||
"webpack-dev-server": "^4.2.1" | ||
"webpack-dev-server": "^4.7.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run the command:
yarn add @babel/core @babel/plugin-transform-runtime @babel/preset-env @babel/runtime babel-loader compression-webpack-plugin pnp-webpack-plugin terser-webpack-plugin webpack webpack-assets-manifest webpack-cli webpack-merge webpack-sources webpack-dev-server
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@justin808 when? why? To accomplish what?
This change is