Minor webpack web cleanup

canary
WolverinDEV 2020-09-01 14:43:04 +02:00
parent 414938c335
commit 8631b0d823
1 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,6 @@
import * as path from "path";
import * as config_base from "./webpack.config";
// @ts-ignore
import * as WasmPackPlugin from "@wasm-tool/wasm-pack-plugin";
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
export = () => config_base.config("web").then(config => {
Object.assign(config.entry, {
@ -18,7 +17,7 @@ export = () => config_base.config("web").then(config => {
config.node = config.node || {};
config.node["fs"] = "empty";
config.plugins.push(new (WasmPackPlugin as any)({
config.plugins.push(new WasmPackPlugin({
crateDirectory: path.resolve(__dirname, "web", "audio-lib"),
outName: "index",
//forceMode: "profiling",