build: migrate autoprefixer from CJS require to ES module import
This commit is contained in:
parent
0c8a3b0348
commit
4c8d576f13
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ import { fileURLToPath, URL } from 'node:url'
|
|||
|
||||
import { defineConfig } from 'vite'
|
||||
import { imagetools } from 'vite-imagetools'
|
||||
import autoprefixer from 'autoprefixer'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
|
@ -16,7 +17,7 @@ export default defineConfig({
|
|||
css: {
|
||||
devSourcemap: true,
|
||||
postcss: {
|
||||
plugins: [require('autoprefixer')]
|
||||
plugins: [autoprefixer({})]
|
||||
}
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue