webpack.config.js 564 B

1234567891011121314151617181920
  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. // Skip TypeScript type checking during build to avoid UI library type errors
  7. skipTypeChecking: true,
  8. }),
  9. withReact({
  10. // Uncomment this line if you don't want to use SVGR
  11. // See: https://react-svgr.com/
  12. // svgr: false
  13. }),
  14. (config) => {
  15. // Update the webpack config as needed here.
  16. // e.g. `config.plugins.push(new MyPlugin())`
  17. return config;
  18. }
  19. );