Oh godddddddd

This commit is contained in:
Radon Rosborough 2020-06-06 13:00:43 -06:00
parent 660203f598
commit 7df0eea51d
1 changed files with 8 additions and 3 deletions

View File

@ -1,8 +1,13 @@
const path = require("path");
const webpack = require("webpack");
module.exports = {
function isProduction(argv) {
return !argv.development;
}
module.exports = (_, argv) => ({
entry: "./frontend/src/app.ts",
mode: process.env.NODE_ENV || "production",
mode: isProduction(argv) ? "production" : "development",
module: {
rules: [
{
@ -26,4 +31,4 @@ module.exports = {
performance: {
hints: false,
},
};
});