Trying to fix the build script
parent
66ea9829b6
commit
3c280f58d1
|
@ -150,10 +150,7 @@ fi
|
||||||
|
|
||||||
echo "---------- Setup ----------"
|
echo "---------- Setup ----------"
|
||||||
chmod +x ./scripts/install_dependencies.sh
|
chmod +x ./scripts/install_dependencies.sh
|
||||||
execute \
|
source ./scripts/install_dependencies.sh
|
||||||
"Installing dependencies" \
|
|
||||||
"Failed to install required dependencies" \
|
|
||||||
"./scripts/install_dependencies.sh"
|
|
||||||
|
|
||||||
echo "---------- Web client ----------"
|
echo "---------- Web client ----------"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import * as fs from "fs-extra";
|
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
import * as config_base from "./webpack.config";
|
import * as config_base from "./webpack.config";
|
||||||
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
|
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
|
||||||
|
@ -18,8 +17,6 @@ export = () => config_base.config("web").then(config => {
|
||||||
config.node = config.node || {};
|
config.node = config.node || {};
|
||||||
config.node["fs"] = "empty";
|
config.node["fs"] = "empty";
|
||||||
|
|
||||||
console.error("Directory: %s", path.resolve(__dirname, "web", "audio-lib"));
|
|
||||||
console.error("Stats: %o", fs.statSync(path.resolve(__dirname, "web", "audio-lib")));
|
|
||||||
config.plugins.push(new WasmPackPlugin({
|
config.plugins.push(new WasmPackPlugin({
|
||||||
crateDirectory: path.resolve(__dirname, "web", "audio-lib"),
|
crateDirectory: path.resolve(__dirname, "web", "audio-lib"),
|
||||||
outName: "index",
|
outName: "index",
|
||||||
|
|
Loading…
Reference in New Issue