# jstocss-loader

> Learn to write a webpack loader

Latest version **1.0.3** (published 2018-09-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install jstocss-loader
pnpm add jstocss-loader
yarn add jstocss-loader
bun add jstocss-loader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-09-01 |
| First published | 2018-09-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.9 |
| Dependencies | 4 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Wang |
| Maintainers | begins |
| Keywords | webpack, loader, jstocss, es6, transpiler, module |

## Links

- npm: https://www.npmjs.com/package/jstocss-loader
- Repository: https://github.com/wyr1227/jstocss-loader
- Homepage: https://github.com/wyr1227/jstocss-loader#readme
- Issues: https://github.com/wyr1227/jstocss-loader/issues
- npm.io page: https://npm.io/package/jstocss-loader

## Dependencies (4)

- [esprima](https://npm.io/package/esprima.md) ^4.0.1
- [escodegen](https://npm.io/package/escodegen.md) ^1.11.0
- [estraverse](https://npm.io/package/estraverse.md) ^4.2.0
- [loader-utils](https://npm.io/package/loader-utils.md) ^1.1.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2018-09-01

## README

> This readme is for jstocss-loader

[![NPM Status](https://img.shields.io/npm/v/babel-loader.svg?style=flat)](https://www.npmjs.com/package/babel-loader)
[![Build Status](https://travis-ci.org/babel/babel-loader.svg?branch=master)](https://travis-ci.org/babel/babel-loader)
[![Build Status](https://ci.appveyor.com/api/projects/status/vgtpr2i5bykgyuqo/branch/master?svg=true)](https://ci.appveyor.com/project/danez/babel-loader/branch/master)

<div align="center">
  <a href="https://github.com/webpack/webpack">
    <img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg">
  </a>
  <h1>JsToCss Loader</h1>
</div>

__Notes:__ Issues with the output should be reported on the babel [issue tracker](https://github.com/wyr1227/jstocss-loader/issues).

# jstocss-loader

A loader for webpack which transforms js into css.

# Getting Started

To begin, you'll need to install jstocss-loader;

``` console
$ npm install --save-dev jstocss-loader
```

# How to use

you should add new file lick css.jscss and write

```console 
let 'app .css' = {
  type: clas,
  color: "#fff"
}
let app2 = {
  type: clas,
  background: blue,
  color: red
}
let c = {
  type: id,
  color: blue
}
```
By use jstocss-loader it will be 

```console
.app .css{color: #fff}.app2{background: blue}.app2{color: red}#c{color: blue}
```

Add in your head style sheet. if you style sheet id is styles_js it will be merge.

this loader not support scoped；

---
_Source: https://npm.io/package/jstocss-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
