From 921073aedc59d061aac31d3f3b32f5c19166d735 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Sun, 24 Apr 2022 05:10:38 +0200 Subject: [PATCH] fix: controls css missing component style --- packages/histoire-controls/package.json | 4 ++-- packages/histoire-controls/src/index.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/histoire-controls/package.json b/packages/histoire-controls/package.json index 1e8946de..17c59a4f 100644 --- a/packages/histoire-controls/package.json +++ b/packages/histoire-controls/package.json @@ -31,8 +31,8 @@ "*.vue" ], "scripts": { - "build": "rimraf dist && vite build && pnpm run build:types && pnpm run build:css", - "build:css": "tailwindcss -i src/style/main.css -o ./dist/style.css -c tailwind.config.cjs --postcss postcss.config.cjs", + "build": "rimraf dist && pnpm run build:css && vite build && pnpm run build:types", + "build:css": "tailwindcss -i src/style/main.css -o ./node_modules/.temp/style.css -c tailwind.config.cjs --postcss postcss.config.cjs", "build:types": "vue-tsc --declaration --emitDeclarationOnly", "watch": "concurrently \"vite build --watch\" \"pnpm run build:types -- --watch\"", "watch:full": "concurrently \"vite build --watch\" \"pnpm run build:css -- --watch\" \"pnpm run build:types -- --watch\"", diff --git a/packages/histoire-controls/src/index.ts b/packages/histoire-controls/src/index.ts index 49b5848f..d1e977ca 100644 --- a/packages/histoire-controls/src/index.ts +++ b/packages/histoire-controls/src/index.ts @@ -1,3 +1,4 @@ +import '../node_modules/.temp/style.css' import type { App } from 'vue' import HstCheckboxVue from './components/checkbox/HstCheckbox.vue' import HstTextVue from './components/text/HstText.vue'