From 1c51be07ec0bce71d09b04fbc48a950a60b09c89 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 17 Oct 2021 19:42:44 +0200 Subject: 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...) --- .env.example | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .env.example (limited to '.env.example') 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 -- cgit v1.2.3