aboutsummaryrefslogtreecommitdiffstats
path: root/.env.example
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-10-17 19:42:44 +0200
committerArmand Philippot <git@armandphilippot.com>2021-10-17 19:42:44 +0200
commit1c51be07ec0bce71d09b04fbc48a950a60b09c89 (patch)
treeda99d11b0523cf6fa7401859aac129ef53ec4da4 /.env.example
parent22adbcd1eb5f4233f65cc4f195298c32cfaa156e (diff)
build: add webpack config
Downgrade Imagemin-SVGO to v9 because v10 is incompatible with image minimizer. Change ESlint config to avoid lint error (should be dependency instead of devDependency...)
Diffstat (limited to '.env.example')
-rw-r--r--.env.example36
1 files changed, 36 insertions, 0 deletions
diff --git a/.env.example b/.env.example
new file mode 100644
index 0000000..5c9f355
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,36 @@
+# Current environment.
+# Type: string - Either 'production', 'development' or a custom environment.
+CURRENT_ENV='development'
+
+#########################
+# webpack configuration #
+#########################
+# Your virtual host.
+# Type: string - A domain name.
+WEBPACK_HOST='www.virtual-host.test'
+
+# Port to use with live reloading.
+# Type: number - A valid port.
+WEBPACK_PORT=8080
+
+# The protocol to use with live reloading.
+# With 'https', you need to define the paths of your certificate and its key.
+# Type: string - Either 'https' or 'http'.
+WEBPACK_PROTOCOL='http'
+
+# The path to your certificate.
+# Type: string - A path.
+#WEBPACK_HTTPS_CERT='/path/to/your/cert/name.cert'
+
+# The path to your certificate key.
+# Type: string - A path.
+#WEBPACK_HTTPS_KEY='/path/to/your/cert/name.key'
+
+# Used by live reloading - Accept boolean or string.
+# Type: boolean - 'true' will open default browser.
+# Type: string - The browser name that will be opened.
+WEBPACK_OPEN='firefox-developer-edition'
+
+# Used to activate Hot Module Replacement.
+# Type: boolean - 'true' or `false`.
+WEBPACK_HOT_RELOAD=true