forked from rDrama/rDrama
Minify on production
parent
484de39566
commit
68e0e423a8
|
@ -6,6 +6,7 @@ const options = {
|
||||||
entryPoints: ["./src/index.tsx"],
|
entryPoints: ["./src/index.tsx"],
|
||||||
outfile: path.resolve(__dirname, "../files/assets/js/chat_done.js"),
|
outfile: path.resolve(__dirname, "../files/assets/js/chat_done.js"),
|
||||||
bundle: true,
|
bundle: true,
|
||||||
|
minify: process.env.NODE_ENV === "production",
|
||||||
define: {
|
define: {
|
||||||
"process.env.NODE_ENV": `"${process.env.NODE_ENV}"`,
|
"process.env.NODE_ENV": `"${process.env.NODE_ENV}"`,
|
||||||
"process.env.DEBUG": process.env.DEBUG,
|
"process.env.DEBUG": process.env.DEBUG,
|
||||||
|
|
Loading…
Reference in New Issue