Skip to content

Commit

Permalink
Merge pull request #2 from neo-garaix/fix-vite
Browse files Browse the repository at this point in the history
Fixed vite
  • Loading branch information
neo-garaix authored Oct 10, 2024
2 parents 867f098 + 4e297f0 commit 400b28a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules
package-lock.json
.npm
dist

# IDE
.idea/
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
"serve": "vite preview"
},
"devDependencies": {
"vite": "^4.0.4"
"vite": "^5.4.8"
},
"dependencies": {
"flatgeobuf": "^3.35.0",
"ol": "latest",
"proj4rs": "^0.1.6",
"rollup-plugin-copy": "^3.5.0",
"vite-plugin-wasm": "^3.3.0"
}
}
10 changes: 10 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import wasm from "vite-plugin-wasm";
import copy from 'rollup-plugin-copy';

export default {
plugins: [
Expand All @@ -8,6 +9,7 @@ export default {
build: {
sourcemap: true,
target: 'esnext',
emptyOutDir: false,
rollupOptions: {
input: {
index: 'index.html',
Expand All @@ -16,7 +18,15 @@ export default {
'sphere-mollweide': 'demo-pages/sphere-mollweide.html',
'wms-image-custom-proj': 'demo-pages/wms-image-custom-proj.html',
'vector-projections': 'demo-pages/vector-projections.html',
'bundeslander-3044': 'demo-pages/bundeslander-3044.html',
},
plugins: [
copy({
targets: [
{ src: 'fgb/axis_orientation_neu_3044.fgb', dest: './dist/fgb' },
]
})
]
},
},
server: {
Expand Down

0 comments on commit 400b28a

Please sign in to comment.