Minor webpack web cleanup
parent
414938c335
commit
8631b0d823
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue