fix: build vue external by vite resolve.dedupe

This commit is contained in:
YunYouJun 2023-01-25 02:12:28 +08:00
parent a325872a35
commit eea1247618
6 changed files with 46 additions and 11 deletions

View File

@ -19,7 +19,7 @@
</p>
- **English** | [简体中文](./README.zh-CN.md)
- [English Docs](https://valaxy.site/?lang=en) | [中文文档](https://valaxy.site/?lang=zh-CN)
- [English Docs](https://valaxy.site/?lang=en) | [中文文档](https://valaxy.site/?lang=zh-CN) | [Docs for Beta](https://beta.valaxy.site)
- [Demo](https://yun.valaxy.site): <small>with [valaxy-theme-yun](./packages/valaxy-theme-yun/)</small>
## Usage

View File

@ -17,13 +17,3 @@ pnpm test:space
超过 50 篇文章时需要超过 2G 内存。
内存使用需要优化……
## vite-plugin-inspect 锁定为 0.6.0
> 0.7.0 之后Break Change要求 Vite@3.1
## Vite3 打包卡住
> 原因未知,猜测与 pnpm monorepo node_modules transforming 过多有关
已解决,似乎与 `<YunFooter />` `<slot />` 有关。

10
docs/pages/dev/logo.md Normal file
View File

@ -0,0 +1,10 @@
---
title: LOGO
---
LOGO = V + Galaxy
- 银河
- 闪耀
- 星球
- 夜空

View File

@ -0,0 +1,34 @@
# Customize post templates
Valaxy uses [ejs](https://ejs.co/) as its template generating helper, you can define your
own templates as below:
## Create a scaffold folder in your project root
```shell
$ mkdir scaffolds
```
## Create your own template to the scaffolds folder
> **Note**
> The filename you are going to create is going to be the same
with the layout name you need when you creating file with command:
> `valaxy new --layout [layout] [filename]`
```shell
$ touch scaffolds/post.md
$ cat <<EOF > scaffolds/post.md
---
layout: <%=layout%>
title: <%=title%>
date: <%=date%>
---
Some additional descriptions
EOF
```
## Using Valaxy new to quickly create a new post

View File

@ -55,6 +55,7 @@ export function createConfigPlugin(options: ResolvedValaxyOptions): Plugin {
define: getDefine(options),
resolve: {
alias: getAlias(options),
dedupe: ['vue'],
},
optimizeDeps: {