esmcss
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

esmcss

Import .css.ts/.css.js functions & focused css helper classes from ES Modules using esbuild

install

npm i -D esmcss

usage

Build file

import { build } from 'esbuild'
import { esmcss_esbuild_plugin_ } from 'esmcss'
await build({
  entryPoints: [/* source code entry point */],
  plugins: [esmcss_esbuild_plugin_()]
})

Component file

import './component.css.js'
// ... Component definition

component.css.ts

export default ()=>`
.my_component {
  color: green;
}
`

Readme

Keywords

Package Sidebar

Install

npm i esmcss

Weekly Downloads

2

Version

0.2.5

License

Apache-2.0

Unpacked Size

15.9 kB

Total Files

12

Last publish

Collaborators

  • btakita