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