chore: use vite plugins from frappe-ui

This commit is contained in:
Jannat Patel
2025-03-19 22:26:58 +05:30
parent c6e658e26b
commit 04cbd6a1d8
16 changed files with 619 additions and 1609 deletions

View File

@@ -6,7 +6,18 @@ import frappeui from 'frappe-ui/vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
frappeui(),
frappeui({
frappeProxy: true,
lucideIcons: true,
jinjaBootData: true,
frappeTypes: {
input: {
},
},
buildConfig: {
indexHtmlPath: '../lms/www/lms.html',
},
}),
vue({
script: {
defineModel: true,
@@ -23,28 +34,13 @@ export default defineConfig({
'tailwind.config.js': path.resolve(__dirname, 'tailwind.config.js'),
},
},
build: {
outDir: `../lms/public/frontend`,
emptyOutDir: true,
commonjsOptions: {
include: [/tailwind.config.js/, /node_modules/],
},
sourcemap: true,
target: 'es2015',
rollupOptions: {
output: {
manualChunks: {
'frappe-ui': ['frappe-ui'],
},
},
},
},
optimizeDeps: {
include: [
'feather-icons',
'showdown',
'engine.io-client',
'tailwind.config.js',
'highlight.js'
],
},
})