Skip to content

Instantly share code, notes, and snippets.

View mostafa7904's full-sized avatar
🏠
Working from home

Mostafa Rahmati mostafa7904

🏠
Working from home
View GitHub Profile
@mostafa7904
mostafa7904 / nuxt.config.js
Last active May 10, 2022 14:59
Remove test attributes from your production code in nuxt
// nuxt.config.js
export default {
// ...
build: {
extend(config, ctx) {
// All the attributes that we want to be removed from the production bundle
let tagAttributesForTesting = ['jest-id']
ctx.loaders.vue.compilerOptions = {
modules: [
{