Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 24 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-06T08:43:39.000Z (about 3 years ago)
- Last Synced: 2024-05-19T14:32:33.931Z (6 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).
[![npm Version](https://img.shields.io/npm/v/jest-url-loader.svg)](https://www.npmjs.com/package/jest-url-loader)
[![Build Status](https://github.com/hustcc/jest-url-loader/workflows/build/badge.svg)](https://github.com/hustcc/jest-url-loader/actions)
[![npm License](https://img.shields.io/npm/l/jest-url-loader.svg)](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).