1.0.4 • Published 7 years ago

fake-classnames-loader v1.0.4

Weekly downloads
16
License
ISC
Repository
-
Last release
7 years ago

Fake classnames loader

Generate class name from property or input similar to classnames-loader but not loading content or processing from actual content.

This make css compilation for testing faster.

Installation

npm install --save-dev fake-classnames-loader

Usage

In webpack config

{
  test: /\.css$/,
  loader: 'fake-classnames')
}

and in js code file

// file.js
import Component from './some/css/Component.css'

console.log(ComponentStyle.class1)
// Output: 'Component_class1'

console.log(ComponentStyle('class1', 'class2'))
// Output: 'Component_class1 Component_class2'

License

ISC

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago