From de3862bf77f9279bc454ad790160b62d8ada57c5 Mon Sep 17 00:00:00 2001 From: Sebin Nyshkim Date: Mon, 3 Apr 2023 00:29:59 +0200 Subject: [PATCH] build: inline postcss config into vite config --- postcss.config.js | 5 ----- vite.config.ts | 21 ++++++++++++--------- 2 files changed, 12 insertions(+), 14 deletions(-) delete mode 100644 postcss.config.js diff --git a/postcss.config.js b/postcss.config.js deleted file mode 100644 index 961986e..0000000 --- a/postcss.config.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - plugins: { - autoprefixer: {} - } -} diff --git a/vite.config.ts b/vite.config.ts index d252a0e..5ea11b2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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')] + } + } +})