We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e651f8 commit 4561215Copy full SHA for 4561215
1 file changed
README.md
@@ -1,3 +1,32 @@
1
# theme-dev-plugin
2
3
-A vite plugin for Typlog theme development
+A vite plugin for Typlog theme development.
4
+
5
6
+```js
7
+import { defineConfig } from "vite"
8
+import tailwind from "@tailwindcss/vite"
9
+import { themeDevServer } from "@typlog/theme-dev-plugin/vite"
10
11
+export default defineConfig({
12
+ plugins: [
13
+ tailwind(),
14
+ themeDevServer(),
15
+ ],
16
+ build: {
17
+ minify: true,
18
+ cssCodeSplit: true,
19
+ outDir: 'static',
20
+ lib: {
21
+ entry: [
22
+ 'src/index.js',
23
+ 'src/index.css',
24
+ 'src/content.css',
25
+ 'src/page.css',
26
27
+ formats: ['es'],
28
+ fileName: (_, name) => `${name}.js`,
29
+ }
30
31
+})
32
+```
0 commit comments