Skip to content

Commit

Permalink
Added vite plugin to allow file names in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
justinforlenza committed Apr 16, 2023
1 parent 01e4c3e commit 5d744e2
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 16 deletions.
80 changes: 64 additions & 16 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"eslint-plugin-vue": "^9.3.0",
"sass": "^1.55.0",
"vite": "^3.1.9",
"vite-plugin-rewrite-all": "^1.0.1",
"vite-plugin-vuetify": "^1.0.0-alpha.12"
}
}
3 changes: 3 additions & 0 deletions frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
import vue from '@vitejs/plugin-vue'
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'

import pluginRewriteAll from 'vite-plugin-rewrite-all'

// Utilities
import { defineConfig } from 'vite'
import { fileURLToPath, URL } from 'node:url'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
pluginRewriteAll(),
vue({
template: { transformAssetUrls }
}),
Expand Down

0 comments on commit 5d744e2

Please sign in to comment.