uptime-kuma/config/vite.config.js

25 lines
602 B
JavaScript
Raw Normal View History

2021-10-12 14:27:25 -04:00
import legacy from "@vitejs/plugin-legacy";
import vue from "@vitejs/plugin-vue";
import { defineConfig } from "vite";
2021-06-24 09:42:03 -04:00
2021-10-12 14:27:25 -04:00
const postCssScss = require("postcss-scss");
const postcssRTLCSS = require("postcss-rtlcss");
2021-06-24 09:42:03 -04:00
// https://vitejs.dev/config/
export default defineConfig({
2021-08-08 12:24:05 -04:00
plugins: [
vue(),
legacy({
2022-04-17 03:27:35 -04:00
targets: [ "ie > 11" ],
additionalLegacyPolyfills: [ "regenerator-runtime/runtime" ]
2021-08-08 12:24:05 -04:00
})
],
css: {
postcss: {
"parser": postCssScss,
"map": false,
2022-04-17 03:27:35 -04:00
"plugins": [ postcssRTLCSS ]
}
2021-10-12 14:27:25 -04:00
},
});