mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-23 12:46:43 +00:00
* merge preview crates Co-authored-by: mgt <mgt@oi-wiki.org> Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com> Co-authored-by: slanterns <slanterns.w@gmail.com> Co-authored-by: Bubbleioa <1342130847@QQ.com> Co-authored-by: 7mile <i@7li.moe> Co-authored-by: 7sDream <7822577+7sDream@users.noreply.github.com> Co-authored-by: Aldric.li <31800073+Parsifa1@users.noreply.github.com> Co-authored-by: Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com> Co-authored-by: AsukaMinato <i@asukaminato.eu.org> Co-authored-by: Banson <xzcxzcyy@126.com> Co-authored-by: Kian-Meng Ang <kianmeng.ang@gmail.com> Co-authored-by: Marlon Regenhardt <marlon.r@hotmail.de> Co-authored-by: OrangeX4 <34951714+OrangeX4@users.noreply.github.com> Co-authored-by: Severi Salminen <severi.salminen@iki.fi> Co-authored-by: Wisha W <49518157+wishawa@users.noreply.github.com> Co-authored-by: werifu <wohu1363195380@outlook.com> * chore: minimize images * feat: move typst-preview to tinymist * build: merge npm dependencies * build: merge npm dependencies 2 * build: use assets TYPST_PREVIEW_HTML * build(ci): bundle typst-preview package * dev: add convenient script for building * build: update yarn.lock --------- Co-authored-by: mgt <mgt@oi-wiki.org> Co-authored-by: slanterns <slanterns.w@gmail.com> Co-authored-by: Bubbleioa <1342130847@QQ.com> Co-authored-by: 7mile <i@7li.moe> Co-authored-by: 7sDream <7822577+7sDream@users.noreply.github.com> Co-authored-by: Aldric.li <31800073+Parsifa1@users.noreply.github.com> Co-authored-by: Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com> Co-authored-by: AsukaMinato <i@asukaminato.eu.org> Co-authored-by: Banson <xzcxzcyy@126.com> Co-authored-by: Kian-Meng Ang <kianmeng.ang@gmail.com> Co-authored-by: Marlon Regenhardt <marlon.r@hotmail.de> Co-authored-by: OrangeX4 <34951714+OrangeX4@users.noreply.github.com> Co-authored-by: Severi Salminen <severi.salminen@iki.fi> Co-authored-by: Wisha W <49518157+wishawa@users.noreply.github.com> Co-authored-by: werifu <wohu1363195380@outlook.com>
16 lines
449 B
JavaScript
16 lines
449 B
JavaScript
import { defineConfig } from "vite";
|
|
import { viteSingleFile } from "vite-plugin-singlefile";
|
|
|
|
export default defineConfig({
|
|
plugins: [viteSingleFile()],
|
|
build: {
|
|
minify: false,
|
|
rollupOptions: {
|
|
output: {
|
|
assetFileNames: `typst-webview-assets/[name]-[hash][extname]`,
|
|
chunkFileNames: "typst-webview-assets/[name]-[hash].js",
|
|
entryFileNames: "typst-webview-assets/[name]-[hash].js",
|
|
},
|
|
},
|
|
},
|
|
});
|