webpack.config.js 449 B

1234567891011121314151617
  1. const { composePlugins, withNx } = require('@nx/webpack');
  2. const { withReact } = require('@nx/react');
  3. // Nx plugins for webpack.
  4. module.exports = composePlugins(
  5. withNx(),
  6. withReact({
  7. // Uncomment this line if you don't want to use SVGR
  8. // See: https://react-svgr.com/
  9. // svgr: false
  10. }),
  11. (config) => {
  12. // Update the webpack config as needed here.
  13. // e.g. `config.plugins.push(new MyPlugin())`
  14. return config;
  15. }
  16. );