funkwhale/front/vite.config.js

27 wiersze
498 B
JavaScript
Czysty Zwykły widok Historia

2022-02-21 14:07:07 +00:00
// vite.config.js
import { defineConfig } from 'vite'
import { createVuePlugin as vue } from "vite-plugin-vue2";
import path from 'path'
2022-02-21 14:07:07 +00:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
{
name: 'fix-django-channels',
transform (src, id) {
if (id.includes('django-channels')) {
return `var parcelRequire;${src}`
}
}
}
],
2022-02-21 14:07:07 +00:00
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
})