Static GitHub Issues

[2592] Excluding .test.js files from build

prev: screen jumps to top before page change
next: New asyncData is not applied when querry is changed

Hi! Is it possible to exclude from build some type of files? For example if test files stored next to tested component (/pages/component.vue and /pages/component.test.js)

Trying to exclude files inside extend but without success, nuxt grab .test.js file while building

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This feature request is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2258">#c2258</a>)</em></sub></div>