Skip to content

Commit

Permalink
Trying to get the styles working
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanshu-09 committed Jul 3, 2024
1 parent 37bdfa4 commit 9ec5851
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 28 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
123 changes: 99 additions & 24 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"package-dist"
],
"main": "./package-dist/ui-gallery.umd.cjs",
"module": "./package-dist/ui-gallery.js",
"module": "./package-dist/ui-gallery.es.js",
"types": "./package-dist/index.d.ts",
"exports": {
".": {
"import": "./package-dist/ui-gallery.js",
"import": "./package-dist/ui-gallery.es.js",
"require": "./package-dist/ui-gallery.umd.cjs",
"types": "./package-dist/index.d.ts"
}
Expand Down
4 changes: 2 additions & 2 deletions vite-package.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ export default defineConfig({
dts({
insertTypesEntry: true,
include: ["src/components"],
exclude: ["**/*.css"],
}),
],
build: {
lib: {
entry: resolve(__dirname, "src/components/index.ts"),
name: "ui-gallery",
fileName: "ui-gallery",
fileName: (format) => `ui-gallery.${format}.js`,
},
rollupOptions: {
external: ["react", "react-dom"],
Expand All @@ -25,6 +24,7 @@ export default defineConfig({
react: "React",
"react-dom": "ReactDOM",
},
assetFileNames: `assets/[name]-[hash][extname]`,
},
},
cssCodeSplit: false,
Expand Down

0 comments on commit 9ec5851

Please sign in to comment.