Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
$ hexo new "My New Post"
More info: Writing
Run server
$ hexo server
More info: Server
Generate static files
$ hexo generate
More info: Generating
Deploy to remote sites
$ hexo deploy
More info: Deployment
打包
因为我们尽量想要独立使用,所以需要配置一下 vite,以便在打包时不会将 lit 代码排除。
ts
import { defineConfig } from 'vite'
// https://vitejs.dev/config/
export default defineConfig({
build: {
lib: {
entry: 'src/index.ts',
formats: ['es'],
fileName: format => `index.${format}.js`,
},
// Because we try to use it independently, we don’t exclude lit.
// rollupOptions: {
// external: /^lit/,
// },
},
})