Add API page and related routes
All checks were successful
CI / build-and-deploy (push) Successful in 5m58s
All checks were successful
CI / build-and-deploy (push) Successful in 5m58s
This commit is contained in:
@ -19,6 +19,7 @@ import { createSplitChunkOutput } from 'utils4u/rollup';
|
||||
import { createViteProxy } from 'utils4u/vite';
|
||||
import { defineConfig, loadEnv, PluginOption } from 'vite';
|
||||
import cdnImport from 'vite-plugin-cdn-import';
|
||||
import { vitePluginFakeServer } from 'vite-plugin-fake-server';
|
||||
import vueDevTools from 'vite-plugin-vue-devtools';
|
||||
import { ViteWebfontDownload } from 'vite-plugin-webfont-dl';
|
||||
|
||||
@ -128,6 +129,15 @@ function Plugins() {
|
||||
'https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700,900',
|
||||
]),
|
||||
);
|
||||
|
||||
plugins.push(
|
||||
// https://github.com/condorheroblog/vite-plugin-fake-server?tab=readme-ov-file#usage
|
||||
vitePluginFakeServer({
|
||||
include: 'fake',
|
||||
basename: 'fake-api',
|
||||
enableProd: true,
|
||||
}),
|
||||
);
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const unused = () => {
|
||||
plugins.push(
|
||||
|
Reference in New Issue
Block a user