// src/main.tsimport{ViteSSG}from'vite-ssg'importAppfrom'./App.vue'// `export const createApp` is required instead of the original `createApp(App).mount('#app')`exportconstcreateApp=ViteSSG(// the root componentApp,// vue-router options{routes},// function to have custom setups({ap...
feat: skip pinging the server when the tab is not shown (#12698) (bedcd8f), closes #12698 feat(create-vite): use typescript 5.0 in templates (#12481) (8582e2d), closes #12481 feat: use preview server parameter in preview server hook (#11647) (4c142ea), closes #11647 feat(reporter...
when a build step starts and pass it the information about the current step and data forwarded from the previous step. ThebuildStepEndhook will be called when the build step ends and its return value will be forwarded to the next step. If a promise is returned, it will be awaited first...
(index 2) at async hookParallel (file:///home/projects/vitejs-vite-fpaadp/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:50737:9) at async Object.buildStart (file:///home/projects/vitejs-vite-fpaadp/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:51089:13) at async eval ...
hasprocess.env.in front of the value, and then we return our actual plugin object. There is a number of hooks available to use. Here, though, we only need theconfighook, which allows us to modify the current config object. We add adefineentry if none exists, then add all our values...
845 * is only effective when that segment is present in the request's 846 * pathname. 847 * 848 * For example if we were to mount a function at _/admin_, it would 849 * be invoked on _/admin_, and _/admin/settings_, however it would 850 * not be invoked for _/_, ...
分业务组件或 UI 组件│ ├── Toast├── config // 配置文件目录│ ├── index.ts├── hooks // 自定义 hook│ └── index.ts├── layouts // 模板,不同的路由,可以配置不同的模板│ └── index.tsx├── lib // 通常这里防止第三方库,比如 jweixin.js、jsBridge.js│ ├── ...
189 // This is a custom hook to fetch data in components 190 export async function useFetchData(endpoint) { 191 const { initialState } = useContext() 192 const { name } = useRoute() // this is just a unique key 193 const state = ref(initialState[name] || null) 194 195...
新项目中数据图表是应用全新的Echarts部件。为了更好地防止每一次都应用echarts.init启用数据图表插口。因此就封裝了启用数据图表hook涵数。 一开始是应用监视window.resize来源于融入数据图表规格,这儿有一个bug,仅有对话框尺寸更改才会开启,而DOM更改则不容易开启了,因此改成element-resize-detector 来监视,极致解决困...
react-keyboard-navigator - A suite of React components and hook for selecting from sibling components through the keyboard. pointer-lock-movement - A pointer lock movement manager for customizing your own creative UI. vite-run - Multiple configuration execution support for vite, freely combining confi...