mirror of
https://github.com/readest/readest.git
synced 2026-04-28 11:30:48 +00:00
Some checks are pending
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
24 lines
567 B
TypeScript
24 lines
567 B
TypeScript
import path from 'node:path';
|
|
import vinext from 'vinext';
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [vinext()],
|
|
resolve: {
|
|
alias: {
|
|
'@pdfjs': path.resolve('public/vendor/pdfjs'),
|
|
'@simplecc': path.resolve('public/vendor/simplecc'),
|
|
},
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
onwarn(warning, defaultHandler) {
|
|
if (warning.message?.includes("Can't resolve original location of error")) return;
|
|
defaultHandler(warning);
|
|
},
|
|
},
|
|
},
|
|
ssr: {
|
|
noExternal: ['tinycolor2'],
|
|
},
|
|
});
|