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