Skip to content

Instantly share code, notes, and snippets.

@ghs
ghs / vite.config.js
Created September 30, 2022 21:49
Remove specified HTML attributes such as data-test or other QA for specific build using Vitejs
// Note, this is for Vue 2 with some custom changes, but it should also work fine in normal conditions.
import {
defineConfig
} from 'vite';
import vue from '@vitejs/plugin-vue2';
export default ({ mode }) => {
// Whatever else you could have around here.