Skip to content

Commit

Permalink
add css inject plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
M A Alim committed May 26, 2023
1 parent e7b3cbd commit c380850
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-simple-clock",
"version": "1.0.0",
"version": "1.0.1",
"description": "A react component to display clock",
"license": "MIT",
"author": "M A Alim",
Expand All @@ -20,6 +20,11 @@
"require": "./dist/react-simple-clock.umd.js"
}
},
"repository": {
"type": "git",
"url": "https://github.com/alim1496/react-simple-clock"
},
"homepage": "https://github.com/alim1496/react-simple-clock",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down Expand Up @@ -65,6 +70,7 @@
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"vite": "^4.3.8",
"vite-plugin-css-injected-by-js": "^3.1.1",
"vitest": "^0.31.1"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'

export default defineConfig({
build: {
Expand All @@ -18,5 +19,5 @@ export default defineConfig({
}
}
},
plugins: [react()]
plugins: [react(), cssInjectedByJsPlugin()]
})

0 comments on commit c380850

Please sign in to comment.