diff --git a/martin-ui/.gitignore b/martin-ui/.gitignore index a547bf36d..b14141ab1 100644 --- a/martin-ui/.gitignore +++ b/martin-ui/.gitignore @@ -11,6 +11,7 @@ node_modules dist dist-ssr *.local +_ # Editor directories and files .vscode/* diff --git a/martin-ui/src/App.tsx b/martin-ui/src/App.tsx index d75e58283..a92ef615e 100644 --- a/martin-ui/src/App.tsx +++ b/martin-ui/src/App.tsx @@ -1,4 +1,4 @@ -import martinCover from './_assets/logo.png'; +import martinCover from './assets/logo.png'; import './App.css'; import styled from 'styled-components'; diff --git a/martin-ui/src/_assets/logo.png b/martin-ui/src/assets/logo.png similarity index 100% rename from martin-ui/src/_assets/logo.png rename to martin-ui/src/assets/logo.png diff --git a/martin-ui/vite.config.ts b/martin-ui/vite.config.ts index 0522bb2ff..6ff74fac5 100644 --- a/martin-ui/vite.config.ts +++ b/martin-ui/vite.config.ts @@ -6,12 +6,15 @@ export default defineConfig({ plugins: [react()], build: { // assets can also be the name of a tile source - // so we use _assets to avoid conflicts + // so we use /_/assets to avoid conflicts + outDir: '_', rollupOptions: { output: { - assetFileNames: '_assets/[name].[hash][extname]', + entryFileNames: '[name].[hash].js', + chunkFileNames: '[name].[hash].js', + assetFileNames: 'assets/[name].[hash][extname]', }, }, }, - publicDir: '_assets', + publicDir: '_/assets', });