import '../components/alert/alert.css'; export { default } from '../components/alert/CAlert.vue'; /** Example of how to prevent script from being imported. Add this to clients vite.config.ts export default ({ mode }: { mode: string }) => { const env = loadEnv(mode, process.cwd(), ''); return defineConfig({ define: { 'process.env': env, LOAD_STYLES: true, // Add this line to control style loading }, }); }; Now LOAD_STYLES can be set to false to prevent styles from being imported. const loadStyles = typeof LOAD_STYLES !== 'undefined' ? LOAD_STYLES : true; if (loadStyles) { import('../components/alert/alert.scss'); } If we consider using this approach, we need to document this approach in the site. **/