https://github.com/meethigher/code2word
Code2Word - 让高亮的代码完美呈现至 Word
https://github.com/meethigher/code2word
highlightjs word
Last synced: about 2 months ago
JSON representation
Code2Word - 让高亮的代码完美呈现至 Word
- Host: GitHub
- URL: https://github.com/meethigher/code2word
- Owner: meethigher
- License: apache-2.0
- Created: 2025-02-08T19:32:54.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2025-02-11T15:53:09.000Z (5 months ago)
- Last Synced: 2025-02-17T01:48:22.124Z (5 months ago)
- Topics: highlightjs, word
- Language: Vue
- Homepage: https://meethigher.top/code2word/
- Size: 273 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
Code2Word - 让高亮的代码完美呈现至 Word
环境
* vue3+vite+pinia
* node16.16.0[项目](https://github.com/meethigher/code2word)预览图
![]()
使用说明
```sh
# 下载代码
git clone https://github.com/meethigher/code2word
# 安装依赖
npm install
# 开发模式
npm run dev
# 打包
npm run build
```在部署到生产环境时,需要按照实际情况,调整`vite.config.js`中的`base`参数
```js
export default defineConfig({// Vite 中 base 配置项的默认值是 /。
// 这意味着,如果你没有显式设置 base,Vite 会默认将所有静态资源的路径当作相对于网站根目录 / 来处理。
base: '/test/',
})```