chore: use vite plugins from frappe-ui
This commit is contained in:
@@ -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'
|
||||
],
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user