mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
build popups
This commit is contained in:
@@ -4,6 +4,7 @@ const webpack = require("webpack");
|
||||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
|
||||
const UnusedWebpackPlugin = require("unused-webpack-plugin");
|
||||
|
||||
module.exports = (env, argv) => {
|
||||
const isDevServer = (env || {}).devServer === true;
|
||||
@@ -104,6 +105,14 @@ module.exports = (env, argv) => {
|
||||
},
|
||||
},
|
||||
}),
|
||||
new UnusedWebpackPlugin({
|
||||
// Source directories
|
||||
directories: [path.join(__dirname, "src"), path.join(__dirname, "utils")],
|
||||
// Exclude patterns
|
||||
exclude: ["*.test.js"],
|
||||
// Root directory (optional)
|
||||
root: __dirname,
|
||||
}),
|
||||
// In dev mode, use a faster method of create sourcemaps
|
||||
// while keeping lines/columns accurate
|
||||
isDevServer &&
|
||||
|
||||
Reference in New Issue
Block a user