Skip to content

Commit 4561215

Browse files
committed
chore: release 0.2.0
1 parent 4e651f8 commit 4561215

1 file changed

Lines changed: 30 additions & 1 deletion

File tree

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
11
# theme-dev-plugin
22

3-
A vite plugin for Typlog theme development
3+
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

Comments
 (0)