build: inline postcss config into vite config

This commit is contained in:
Sebin Nyshkim 2023-04-03 00:29:59 +02:00
parent 6094a2a559
commit de3862bf77
2 changed files with 12 additions and 14 deletions

View file

@ -1,5 +0,0 @@
module.exports = {
plugins: {
autoprefixer: {}
}
}

View file

@ -1,19 +1,22 @@
import { fileURLToPath, URL } from "node:url";
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from "vite";
import { imagetools } from "vite-imagetools";
import vue from "@vitejs/plugin-vue";
import { defineConfig } from 'vite'
import { imagetools } from 'vite-imagetools'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
base: "/sebin/",
base: '/sebin/',
plugins: [vue(), imagetools()],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
css: {
devSourcemap: true,
},
});
postcss: {
plugins: [require('autoprefixer')]
}
}
})