alloc / alloc/vite-plugin-compress

ENOENT: no such file or directory

オープン
#14 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
133
フォーク
13
PR マージ指標
30日以内にマージされた PR はありません

説明

I am using a simple vite.config.ts like this:
```ts
import type { UserConfig } from 'vite';
import { resolve } from "path";
import vue from '@vitejs/plugin-vue';
import compress from 'vite-plugin-compress'

function pathResolve(dir: string) {
return resolve(process.cwd(), '.', dir);
}

export default {
plugins: [
vue(),
compress()
],
resolve: {
alias: {
"/@": pathResolve('src') + '/',
'vue': 'vue/dist/vue.esm-bundler.js' // 定义vue的别名,如果使用其他的插件,可能会用到别名
},
dedupe: ['vue'],
},
}

```
after `npm run build`, I got the following error:
```
[vite:compress] ENOENT: no such file or directory, open '/404.svg'
file: /404.svg
error during build:
Error: ENOENT: no such file or directory, open '/404.svg'
```
`404.svg` is exactly exist , just under /public.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。