Skip to content
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

Custom Webpack Configuration - Url Loader #2112

Closed
vladamx opened this issue Nov 27, 2019 · 2 comments
Closed

Custom Webpack Configuration - Url Loader #2112

vladamx opened this issue Nov 27, 2019 · 2 comments
Labels

Comments

@vladamx
Copy link

vladamx commented Nov 27, 2019

Hi, I tried to include custom loaders in my Nx React Monorepo. It is pretty simple. I want to load SVG and other assets as modules. However, something is wrong in my setup.

The only two things that I did are:
Made custom webpack config
Linked to that config in workspace.json

Please see the pictures below...

image

image

Thank you for your help.

@puku0x
Copy link
Contributor

puku0x commented Nov 29, 2019

@vladamx
I had a similar problem and solved it by adding @nrwl/react/plugins/babel.
#1931 (comment)

const babelWebpackConfig = require('@nrwl/react/plugins/babel');

module.exports = config => {
  config.module.rules.unshift(...);
  return babelWebpackConfig(config);
};

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants