diff --git a/package-lock.json b/package-lock.json index b1a2e2b..fdcc6da 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,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" } }, @@ -4721,6 +4722,15 @@ "url": "https://opencollective.com/vitest" } }, + "node_modules/vite-plugin-css-injected-by-js": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/vite-plugin-css-injected-by-js/-/vite-plugin-css-injected-by-js-3.1.1.tgz", + "integrity": "sha512-mwrFvEEy0TuH8Ul0cb2HgjmNboQ/JnEFy+kHCWqAJph3ikMOiIuyYVdx0JO4nEIWJyzSnc4TTdmoTulsikvJEg==", + "dev": true, + "peerDependencies": { + "vite": ">2.0.0-0" + } + }, "node_modules/vitest": { "version": "0.31.1", "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.31.1.tgz", diff --git a/package.json b/package.json index 23f7d98..2e2123e 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", @@ -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": { diff --git a/vite.config.js b/vite.config.js index 3fdf739..2487ce6 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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: { @@ -18,5 +19,5 @@ export default defineConfig({ } } }, - plugins: [react()] + plugins: [react(), cssInjectedByJsPlugin()] })