Socket
Book a DemoInstallSign in
Socket

jstocss-loader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jstocss-loader

Learn to write a webpack loader

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

This readme is for jstocss-loader

NPM Status Build Status Build Status

JsToCss Loader

Notes: Issues with the output should be reported on the babel issue tracker.

jstocss-loader

A loader for webpack which transforms js into css.

Getting Started

To begin, you'll need to install jstocss-loader;

$ npm install --save-dev jstocss-loader

How to use

you should add new file lick css.jscss and write

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

.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;

Keywords

webpack

FAQs

Package last updated on 01 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts