Skip to content

Commit

Permalink
Merge pull request #5 from Oseenix/master
Browse files Browse the repository at this point in the history
Removing build warnings and adding an example index page
  • Loading branch information
Kanahiro authored Jan 3, 2025
2 parents 606f365 + b0d32b7 commit ffb4e98
Show file tree
Hide file tree
Showing 4 changed files with 216 additions and 0 deletions.
16 changes: 16 additions & 0 deletions example/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Examples</title>
</head>
<body>
<h1>Examples</h1>
<ul>
<li><a href="./raster.html">Raster Example</a></li>
<li><a href="./vector.html">Vector Example</a></li>
</ul>
</body>
</html>

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"devDependencies": {
"jma-utils": "^0.1.0",
"maplibre-gl": "5.0.0-pre.10",
"rollup-plugin-visualizer": "^5.13.1",
"typescript": "^4.9.5",
"vite": "^6.0.6"
},
Expand Down
188 changes: 188 additions & 0 deletions pnpm-lock.yaml

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

11 changes: 11 additions & 0 deletions vite.config.example.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
import { defineConfig } from 'vite';
import { visualizer } from 'rollup-plugin-visualizer';

export default defineConfig({
root: './example',
base: './',
build: {
outDir: '../dist',
chunkSizeWarningLimit: 1000,
emptyOutDir: true,
rollupOptions: {
input: {
index: 'example/index.html',
raster: 'example/raster.html',
vector: 'example/vector.html',
},
},
},
plugins: [
visualizer({
filename: './dist/stats.html',
open: false,
}),
],
});

0 comments on commit ffb4e98

Please sign in to comment.