0.1.1 • Published 7 months ago

@elonehoo/vite-plugin-dist-css v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

vite-plugin-dist-css

This plugin will inject css into bundled js file using import statement.

// bundled js file, with import css at top (if any)
import './style.css'

// rest of the file
// ...

install

# npm
npm i @elonehoo/vite-plugin-dist-css
# yarn
yarn add @elonehoo/vite-plugin-dist-css
# pnpm
pnpm install @elonehoo/vite-plugin-dist-css

usage

// vite.config.ts
import distCss from '@elonehoo/vite-plugin-dist-css'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    // any other plugins
    distCss()
  ],
})
0.0.14

10 months ago

0.1.0

10 months ago

0.1.1

7 months ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

12 months ago

0.0.13

12 months ago

0.0.9

1 year ago

0.0.7

1 year ago

0.0.5

1 year ago

0.0.6

1 year ago

0.0.4

2 years ago

0.0.4-beta.0

2 years ago

0.0.3

2 years ago

0.0.1

2 years ago