Trying to fix the build script

canary
WolverinDEV 2020-09-02 11:11:25 +02:00
parent 66ea9829b6
commit 3c280f58d1
2 changed files with 1 additions and 7 deletions

View File

@ -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 ----------"

View File

@ -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",