Skip to content

Commit

Permalink
fix: made docs ignored in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Milfred committed Oct 30, 2024
1 parent d21b99c commit 624deeb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ export default defineNuxtConfig({

vite: {
plugins: [
{
name: 'vue-docs',
transform(code, id) {
if (!/vue&type=docs/.test(id)) return;
return 'export default \'\'';
},
},
svgLoader({
svgoConfig: {
plugins: [
Expand Down

0 comments on commit 624deeb

Please sign in to comment.