summaryrefslogtreecommitdiff
path: root/sw-ui/src/jsMain/kotlin/webpack
diff options
context:
space:
mode:
Diffstat (limited to 'sw-ui/src/jsMain/kotlin/webpack')
-rw-r--r--sw-ui/src/jsMain/kotlin/webpack/WebpackUtils.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/sw-ui/src/jsMain/kotlin/webpack/WebpackUtils.kt b/sw-ui/src/jsMain/kotlin/webpack/WebpackUtils.kt
new file mode 100644
index 00000000..dde1140a
--- /dev/null
+++ b/sw-ui/src/jsMain/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