forked from brooksbingham/theme-elegance
27 lines
497 B
JavaScript
27 lines
497 B
JavaScript
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: "./js/theme.js",
|
|
name: 'theme',
|
|
formats: ['iife'],
|
|
fileName: function() {
|
|
return 'theme.js'
|
|
}
|
|
},
|
|
outDir: '../assets/js/',
|
|
rollupOptions: {
|
|
external: ['$', 'jquery', 'prestashop'],
|
|
output: {
|
|
globals: {
|
|
$: '$',
|
|
jquery: 'jQuery',
|
|
prestashop: 'prestashop'
|
|
}
|
|
}
|
|
},
|
|
write: true
|
|
},
|
|
})
|