PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 1.2.20
Booking for Appointments and Events Calendar – Amelia v1.2.20
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / v3 / vite.config.js
ameliabooking / v3 Last commit date
public 1 year ago src 1 year ago .eslintrc.js 4 years ago .prettierrc.js 4 years ago index.html 4 years ago package-lock.json 1 year ago package.json 1 year ago vite.config.js 1 year ago
vite.config.js
82 lines
1 import { defineConfig } from 'vite'
2 import vue from '@vitejs/plugin-vue'
3 import Inspect from 'vite-plugin-inspect'
4 import AutoImport from 'unplugin-auto-import/vite'
5 import Components from 'unplugin-vue-components/vite'
6 import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
7 import { useDynamicPublicPath } from 'vite-plugin-dynamic-publicpath'
8
9 const path = require('path')
10
11 // https://vitejs.dev/config/
12 export default defineConfig({
13 plugins: [
14 vue(),
15 Inspect(),
16 useDynamicPublicPath({
17 dynamicImportHandler: 'window.__dynamic_handler__',
18 dynamicImportPreload: 'window.__dynamic_preload__'
19 }),
20 AutoImport({
21 imports: ['vue', '@vueuse/core'],
22 resolvers: [ElementPlusResolver()]
23 }),
24 Components({
25 resolvers: [ElementPlusResolver()]
26 })
27 ],
28
29 resolve: {
30 extensions: ['.js', '.vue', '.json', '.mjs'],
31 alias: {
32 '@css': path.resolve(__dirname, '/src/assets/scss')
33 }
34 },
35
36 css: {
37 preprocessorOptions: {
38 scss: {
39 additionalData: `
40 @import "@css/admin/_variables";
41 @import "@css/common/variables/_breakpoints";
42 @import "@css/common/icon-fonts/variables";
43 @import "@css/common/animations/animations";
44 `
45 }
46 }
47 },
48
49 base: '',
50
51 build: {
52 target: 'esnext',
53 chunkSizeWarningLimit: 1500,
54 rollupOptions: {
55 input: ['src/assets/js/admin/admin.js', 'src/assets/js/public/public.js'],
56 output: {
57 manualChunks: {
58 stepForm: [
59 'src/views/public/StepForm/BookingStepForm.vue',
60 ],
61 catalogForm: [
62 'src/views/public/CatalogForm/CatalogForm.vue',
63 ],
64 eventListForm: [
65 'src/views/public/EventForm/EventListForm/EventsListForm.vue'
66 ],
67 eventCalendarForm: [
68 'src/views/public/EventForm/EventCalendarForm/EvensCalendarForm.vue'
69 ],
70 customerPanel: [
71 'src/views/public/Cabinet/CustomerPanel/CustomerPanel.vue',
72 ],
73 customizeForm: [
74 'src/views/admin/customize/Customize.vue',
75 ],
76 },
77 }
78 },
79 outDir: './public'
80 }
81 })
82