Skip to content
Discussion options

You must be logged in to vote

If you're going to use vite, then you will need to setup Lucky to use it.

In your src/app.cr..

Lucky::AssetHelpers.load_manifest("public/manifest.json", use_vite: true)

This will use public/manifest.json in the vite format instead of mix-manifest.json.

And here's my vite.config.js from a Lucky project I have in production. Just update whatever you need

import { defineConfig } from 'vite'
import autoprefixer from 'autoprefixer'
import tailwindcss from 'tailwindcss'
import inject from '@rollup/plugin-inject'

const isWatch = process.argv.includes('--watch');

export default defineConfig(({ command, mode }) => ({
  plugins: [
    inject({
      htmx: 'htmx.org'
    }),
  ],
  css: {
    postcss

Replies: 1 comment 15 replies

Comment options

You must be logged in to vote
15 replies
@zw963
Comment options

@jwoertink
Comment options

@zw963
Comment options

@jwoertink
Comment options

Answer selected by zw963
@zw963
Comment options

@zw963
Comment options

@jwoertink
Comment options

@zw963
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants