Oh godddddddd
This commit is contained in:
parent
660203f598
commit
7df0eea51d
|
@ -1,8 +1,13 @@
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
const webpack = require("webpack");
|
||||||
|
|
||||||
module.exports = {
|
function isProduction(argv) {
|
||||||
|
return !argv.development;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = (_, argv) => ({
|
||||||
entry: "./frontend/src/app.ts",
|
entry: "./frontend/src/app.ts",
|
||||||
mode: process.env.NODE_ENV || "production",
|
mode: isProduction(argv) ? "production" : "development",
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
|
@ -26,4 +31,4 @@ module.exports = {
|
||||||
performance: {
|
performance: {
|
||||||
hints: false,
|
hints: false,
|
||||||
},
|
},
|
||||||
};
|
});
|
||||||
|
|
Loading…
Reference in New Issue