vite-plugin-vue-remove-attributes
v1.1.2
Published
Removing data attributes from SFC at build time
Downloads
199
Maintainers
Readme
vite-plugin-vue-remove-attributes
Remove data attributes from SFC at build time
📦 Install
npm i vite-plugin-vue-remove-attributes -D
# yarn
yarn add vite-plugin-vue-remove-attributes -D
# pnpm
pnpm add vite-plugin-vue-remove-attributes -D
🦄 Usage
Add plugin to your vite.config.js
import { defineConfig } from "vite";
import removeAttrsPlugin from "vite-plugin-vue-remove-attributes";
export default defineConfig({
plugins: [
removeAttrsPlugin(["test-id"]) // By default ["test-id"]
]
});
Inspired by vue-cli-plugin-test-attrs