diff options
Diffstat (limited to 'sw-ui/src/main/kotlin/webpack')
-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" |