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
Hey. You can ignore files by putting a - in front of their name. https://github.com/nuxt/nuxt.js/pull/2417 (Also configurable with ignorePrefix)
@pi0 thanks for answer! But will be this option configurable?
Yes. But currently only the prefix is configurable. Maybe would be a good idea to add support for suffix ignores too. Especially for .test files.
/cc @Atinux @graphman65
Ah, another idea: We can also introduce a new option options.ignorePatterns[] or options.ignore[] with backward compatibility to options.ignorePrefix and full customization.
I like your second idea @pi0, added on Trello: https://trello.com/c/XQFPzEXW
Hi @Atinux,
what about the test files that are located in the components folder? How can we ignore these kind of files at build time?
If you don't require them in your app, they won't be imported at build time @marco-gattelli
This feature-request has been cancelled by @manniL.
Already possible by using the
ignorePrefix
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.