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

url-loader deprecated in webpack v5 #4

Open
meessour opened this issue Nov 5, 2021 · 0 comments
Open

url-loader deprecated in webpack v5 #4

meessour opened this issue Nov 5, 2021 · 0 comments

Comments

@meessour
Copy link

meessour commented Nov 5, 2021

Hi, im doing research about react-native + react-native-web + webpack and I find your tutorial very helpful! I did find that the url-loader configuration used inside webpack.config.js is depcreated in webpack v5 (https://webpack.js.org/guides/asset-modules/ & https://v4.webpack.js.org/loaders/url-loader/).

I believe imageLoaderConfiguration can be replaced by the following:
const imageLoaderConfiguration = { test: /\.(gif|jpe?g|png)$/, type: 'asset', };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant