UNPKG

vanillajs-smartwizard

Version:
21 lines (20 loc) 680 B
// vite.config.css.js import { defineConfig } from 'vite'; import path from 'path'; export default defineConfig({ build: { outDir: 'dist', // The output directory for the CSS emptyOutDir: false, // Don't empty the directory, as the JS build already did it assetsDir: '', // Assets will be in the root of 'dist' rollupOptions: { input: { 'vanillajs.smartWizard': 'src/scss/smart_wizard_all.scss' }, output: { assetFileNames: 'css/vanillajs.smartWizard.min.css', entryFileNames: 'ignored-[name].js', // We don't need a JS entry chunkFileNames: 'ignored-[name].js' // We don't need a JS chunk } } } });