Skip to content

Commit

Permalink
use _/assets as assetsDir
Browse files Browse the repository at this point in the history
  • Loading branch information
paigewilliams committed Jul 11, 2024
1 parent 3ac5ae6 commit c19591c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions martin-ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@ export default defineConfig({
plugins: [react()],
build: {
// assets can also be the name of a tile source
// so we use /_/* to avoid conflicts
outDir: '_',
rollupOptions: {
output: {
entryFileNames: 'assets/[name].[hash].js',
chunkFileNames: '[name].[hash].js',
assetFileNames: 'assets/[name].[hash][extname]',
},
},
// so we use /_/assets to avoid conflicts
assetsDir: '_/assets'
},
});
2 changes: 1 addition & 1 deletion martin/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ fn main() -> std::io::Result<()> {
static_files::NpmBuild::new("../martin-ui")
.install()?
.run("build")?
.target("../martin-ui/_")
.target("../martin-ui/dist")
.change_detection()
.to_resource_dir()
.build()?;
Expand Down

0 comments on commit c19591c

Please sign in to comment.