https://github.com/devniel/example-webpack-image-with-uri-and-file-loader
https://github.com/devniel/example-webpack-image-with-uri-and-file-loader
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devniel/example-webpack-image-with-uri-and-file-loader
- Owner: devniel
- Created: 2020-03-12T15:03:33.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-12T15:21:13.000Z (about 6 years ago)
- Last Synced: 2025-01-12T21:09:56.354Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### About webpack and image loading with url-loader instead of file-loader.
Notice the statement of `const x = require("!!url-loader!./image.png");`, where `!!` is used to force webpack to use `url-loader` instead of `file-loader`, I think that the order is ignored in the webpack config file.