Sha256: 0560b6e3c9ed13631ff77d8ebf292dd5941d569ca789a386c8c676fdf73fb40f

Contents?: true

Size: 721 Bytes

Versions: 9

Compression:

Stored size: 721 Bytes

Contents

import {defineConfig} from 'vite'
import RubyPlugin from 'vite-plugin-ruby'
import FullReload from 'vite-plugin-full-reload'
import StimulusHMR from 'vite-plugin-stimulus-hmr';
export default defineConfig({
    plugins: [
        RubyPlugin(),
        FullReload(['config/routes.rb', 'app/views/**/*', 'app/frontend/pages/**/*']),
        StimulusHMR()
    ],
    root: './app/frontend',
    build: {
        manifest: true,
        rollupOptions: {
            input: {
                application: 'app/frontend/entrypoints/application.js'
            }
        }
    },
    css: {
        preprocessorOptions: {
            scss: {
                api: 'modern-compiler' // or "modern"
            }
        }
    }
})

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sun-sword-0.0.9 lib/generators/sun_sword/templates_frontend/vite.config.ts.tt
sun-sword-0.0.8 lib/generators/sun_sword/templates_frontend/vite.config.ts.tt
sun-sword-0.0.7 lib/generators/sun_sword/templates_frontend/vite.config.ts.tt
sun-sword-0.0.6 lib/generators/sun_sword/templates_frontend/vite.config.ts.tt
sun-sword-0.0.5 lib/generators/sun_sword/templates_frontend/vite.config.ts.tt
sun-sword-0.0.4 lib/generators/sun_sword/templates_frontend/vite.config.ts.tt
sun-sword-0.0.3 lib/generators/sun_sword/templates_frontend/vite.config.ts.tt
sun-sword-0.0.2 lib/generators/sun_sword/templates_frontend/vite.config.ts.tt
sun-sword-0.0.1 lib/generators/sun_sword/templates_frontend/vite.config.ts.tt