diff options
author | Joffrey Bion <joffrey.bion@gmail.com> | 2023-07-06 00:16:45 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@gmail.com> | 2023-07-06 00:30:55 +0200 |
commit | cdaae5279e3f53c146df2500a8d7a1d4eae2f674 (patch) | |
tree | 55347f2839caaf4688f4f989e9568ffd7102db63 /sw-ui/src/jsMain/kotlin/webpack/WebpackUtils.kt | |
parent | Upgrade Kotlin JS wrappers to 1.0.0-pre.585 (diff) | |
download | seven-wonders-cdaae5279e3f53c146df2500a8d7a1d4eae2f674.tar.gz seven-wonders-cdaae5279e3f53c146df2500a8d7a1d4eae2f674.tar.bz2 seven-wonders-cdaae5279e3f53c146df2500a8d7a1d4eae2f674.zip |
Convert sw-ui module to Kotlin Multiplatform gradle pluginmain
Diffstat (limited to 'sw-ui/src/jsMain/kotlin/webpack/WebpackUtils.kt')
-rw-r--r-- | sw-ui/src/jsMain/kotlin/webpack/WebpackUtils.kt | 9 |
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" |