diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-21 15:23:14 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-21 15:23:20 +0200 |
commit | b7118cbe9342fa3bf225459546335b718181cc10 (patch) | |
tree | 1611c585d008f4cc1254f657fddee58fef3704af /sw-ui/src/main/kotlin/webpack/WebpackUtils.kt | |
parent | Add player icon in player info (diff) | |
download | seven-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.kt | 9 |
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" |