🔧 Fixing comlink
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const path = require("path");
|
||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||
const WorkerPlugin = require("worker-plugin");
|
||||
const outputDirectory = "dist";
|
||||
|
||||
module.exports = {
|
||||
@@ -17,10 +18,10 @@ module.exports = {
|
||||
use: ["babel-loader"],
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
{
|
||||
test: /\.worker\.ts$/,
|
||||
use: { loader: "worker-loader" },
|
||||
},
|
||||
// {
|
||||
// test: /\.worker\.ts$/,
|
||||
// use: { loader: "worker-loader" },
|
||||
// },
|
||||
|
||||
{
|
||||
enforce: "pre",
|
||||
@@ -61,6 +62,7 @@ module.exports = {
|
||||
},
|
||||
plugins: [
|
||||
// new CleanWebpackPlugin([outputDirectory]),
|
||||
new WorkerPlugin(),
|
||||
new HtmlWebpackPlugin({
|
||||
template: "./public/index.html",
|
||||
favicon: "./public/favicon.ico",
|
||||
|
||||
Reference in New Issue
Block a user