Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hustcc/jest-less-loader
⚛️ Jest transformer for .less file.
https://github.com/hustcc/jest-less-loader
jest jest-loader jest-transformer less less-loader
Last synced: 3 months ago
JSON representation
⚛️ Jest transformer for .less file.
- Host: GitHub
- URL: https://github.com/hustcc/jest-less-loader
- Owner: hustcc
- License: mit
- Created: 2019-12-13T13:00:12.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T05:33:39.000Z (about 2 years ago)
- Last Synced: 2024-05-19T14:32:15.659Z (8 months ago)
- Topics: jest, jest-loader, jest-transformer, less, less-loader
- Language: TypeScript
- Homepage: https://github.com/hustcc/jest-less-loader
- Size: 64.5 KB
- Stars: 5
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-jest - jest-less-loader
README
# jest-less-loader
> Jest transformer to run `.less` file in [jest-electron](https://github.com/hustcc/jest-electron) or in node env.
[![npm Version](https://img.shields.io/npm/v/jest-less-loader.svg)](https://www.npmjs.com/package/jest-less-loader)
[![Build Status](https://github.com/hustcc/jest-less-loader/workflows/build/badge.svg)](https://github.com/hustcc/jest-less-loader/actions)
[![Coverage Status](https://coveralls.io/repos/github/hustcc/jest-less-loader/badge.svg)](https://coveralls.io/github/hustcc/jest-less-loader)
[![npm License](https://img.shields.io/npm/l/jest-less-loader.svg)](https://www.npmjs.com/package/jest-less-loader)## Usage
- Install
```bash
$ npm i --save-dev jest-less-loader
```- Configure
Update your jest configure, and add it into transform.
```diff
+ "transform": {
+ "\\.(less|css)$": "jest-less-loader"
+ },
```## License
MIT@[hustcc](https://github.com/hustcc).