summaryrefslogtreecommitdiff
path: root/sw-ui/src/main/kotlin/webpack/WebpackUtils.kt
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-21 15:23:14 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-21 15:23:20 +0200
commitb7118cbe9342fa3bf225459546335b718181cc10 (patch)
tree1611c585d008f4cc1254f657fddee58fef3704af /sw-ui/src/main/kotlin/webpack/WebpackUtils.kt
parentAdd player icon in player info (diff)
downloadseven-wonders-b7118cbe9342fa3bf225459546335b718181cc10.tar.gz
seven-wonders-b7118cbe9342fa3bf225459546335b718181cc10.tar.bz2
seven-wonders-b7118cbe9342fa3bf225459546335b718181cc10.zip
Move externals to relevant packages
Diffstat (limited to 'sw-ui/src/main/kotlin/webpack/WebpackUtils.kt')
-rw-r--r--sw-ui/src/main/kotlin/webpack/WebpackUtils.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/sw-ui/src/main/kotlin/webpack/WebpackUtils.kt b/sw-ui/src/main/kotlin/webpack/WebpackUtils.kt
new file mode 100644
index 00000000..dde1140a
--- /dev/null
+++ b/sw-ui/src/main/kotlin/webpack/WebpackUtils.kt
@@ -0,0 +1,9 @@
+package webpack
+
+external val process: Process
+
+external interface Process {
+ val env: dynamic
+}
+
+fun isProdEnv(): Boolean = process.env.NODE_ENV == "production"
bgstack15