-
Notifications
You must be signed in to change notification settings - Fork 142
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
[FEATURE] Extend webpack #1523
Comments
the docs describe "The Retail React App imports readymade Webpack configurations for the client side and server side form the PWA Kit React SDK. In most cases, you don’t need to change these configurations, but if you do, you can extend the Webpack configuration in webpack.config.js." |
Hi @kylegoines , what does your project's One way to extend it is something like: const config = require('@salesforce/pwa-kit-dev/configs/webpack/config')
// Add your customizations here
const clientConfig = config.find((cnf) => cnf.name === 'client')
module.exports = config |
This is amazing! thank you so much for your help - this should be added to the docs its very helpful!!! for my exact usecase i needed to require
but i was able to extend my alias like this now
thank you again :) a little more context for people finding this issue later: pwa-kit doesn't expose the |
Is your feature request related to a problem? Please describe.
You should be able to extend the
webpack.config.js
instance of the pwa-kit-dev usingwebpack-merge
If i currently set up awebpack.config.js
, all required functionality of pwa-kit fails as it has been overwritten.The text was updated successfully, but these errors were encountered: