zkl-kds/webpack.config.js
2024-08-21 17:11:06 +03:00

21 lines
471 B
JavaScript

const path = require("path");
const { experiments } = require("webpack");
const { library } = require("webpack");
const webpack = require("webpack");
module.exports = {
entry: "./index.js",
output: {
filename: "bundle.js",
path: path.resolve(__dirname, "dist"),
},
plugins: [
new webpack.IgnorePlugin({
checkResource(resource) {
return /.*\/wordlists\/(?!english).*\.json/.test(resource);
},
}),
],
mode: "production",
};