mirror of
https://github.com/System-End/theseus.git
synced 2026-04-19 16:38:18 +00:00
31 lines
573 B
TypeScript
31 lines
573 B
TypeScript
import { defineConfig } from 'vite'
|
|
import ViteRails from 'vite-plugin-rails'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
ViteRails(),
|
|
],
|
|
define: {
|
|
'this': 'globalThis',
|
|
'global': 'globalThis',
|
|
},
|
|
css: {
|
|
// postcss: './postcss.config.js',
|
|
preprocessorOptions: {
|
|
scss: {
|
|
api: 'modern-compiler' // or "modern"
|
|
}
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': './app/frontend'
|
|
}
|
|
},
|
|
build: {
|
|
target: 'esnext' //browsers can handle the latest ES features
|
|
},
|
|
optimizeDeps: {
|
|
include: ['d3', 'datamaps']
|
|
}
|
|
})
|