🔧 Fixing comlink

This commit is contained in:
2021-04-27 10:51:07 -07:00
parent 3a5bf12ba6
commit 25a84b2907
7 changed files with 51 additions and 19 deletions

View File

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