Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vite.config.ts does not work #256

Closed
deleonio opened this issue Jun 13, 2021 · 2 comments
Closed

vite.config.ts does not work #256

deleonio opened this issue Jun 13, 2021 · 2 comments

Comments

@deleonio
Copy link

deleonio commented Jun 13, 2021

If I provide my own configuration, the build no longer works.

// windi.config.ts
import vue from '@vitejs/plugin-vue';

export default {
  plugins: [
    vue({
      template: {
        compilerOptions: {
          isCustomElement: (tag) => {
            console.log('isCustomElement', tag);
            return tag === 'kol-counter';
          },
        },
      },
    }),
  ],
};

How can I extend the configuration without errors?

@deleonio
Copy link
Author

@antfu antfu closed this as completed in 4f498c0 Jun 21, 2021
@antfu
Copy link
Member

antfu commented Jun 21, 2021

Vue plugin is controlled by Slidev, use this instead:

https://sli.dev/custom/config-vite.html#configure-internal-plugins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants