Skip to content

Commit e3883a5

Browse files
committed
POC commit
1 parent a534689 commit e3883a5

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

buildprocess/webpack.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const configureWebpackForTerriaJS = require("terriajs/buildprocess/configureWebpack");
22
const configureWebpackForPlugins = require("./configureWebpackForPlugins");
33
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
4+
const CopyPlugin = require("copy-webpack-plugin");
45
const path = require("path");
56

67
/**
@@ -135,6 +136,16 @@ module.exports = function (devMode) {
135136
new MiniCssExtractPlugin({
136137
filename: "TerriaMap.css",
137138
ignoreOrder: true
139+
}),
140+
// Copy sql-wasm.wasm to the root wwwroot directory for @ngageoint/geopackage
141+
// Note: geopackage uses rtree-sql.js (a fork of sql.js), so we must use its WASM file
142+
new CopyPlugin({
143+
patterns: [
144+
{
145+
from: require.resolve("rtree-sql.js/dist/sql-wasm.wasm"),
146+
to: path.resolve(__dirname, "..", "wwwroot", "sql-wasm.wasm")
147+
}
148+
]
138149
})
139150
],
140151
resolve: {

wwwroot/sql-wasm.wasm

616 KB
Binary file not shown.

0 commit comments

Comments
 (0)