https://github.com/hustcc/jest-url-loader
⚛️ Similar with webpack's url-loader for Jest.
https://github.com/hustcc/jest-url-loader
jest jest-loader jest-transformer url-loader
Last synced: 17 days ago
JSON representation
⚛️ Similar with webpack's url-loader for Jest.
- Host: GitHub
- URL: https://github.com/hustcc/jest-url-loader
- Owner: hustcc
- License: mit
- Created: 2019-12-13T05:26:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-06T08:43:39.000Z (over 3 years ago)
- Last Synced: 2024-05-19T14:32:33.931Z (11 months ago)
- Topics: jest, jest-loader, jest-transformer, url-loader
- Language: TypeScript
- Homepage: https://github.com/hustcc/jest-url-loader
- Size: 37.1 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-jest - jest-url-loader - loader` for Jest transformer. (Packages / Processor)
README
# jest-url-loader
> Similar with webpack's url-loader for Jest. Import url resource in [jest-electron](https://github.com/hustcc/jest-electron).
[](https://www.npmjs.com/package/jest-url-loader)
[](https://github.com/hustcc/jest-url-loader/actions)
[](https://www.npmjs.com/package/jest-url-loader)## Usage
- Install
```bash
$ npm i --save-dev jest-url-loader
```- Configure
Update your jest configure, and add it into transform.
```diff
+ "transform": {
+ "\\.(jpg|jpeg|png|gif|svg)$": "jest-url-loader"
+ },
```## License
MIT@[hustcc](https://github.com/hustcc).