summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-19 03:19:14 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-19 03:19:14 +0200
commitbbb50922bf2d80e6b510eaca35477efb75704722 (patch)
treec18316bd61ca52c09166b88084eaa76554f0ecf6 /webpack.config.js
parent611085d403550303dbf66ec3f9152f772377f1c4 (diff)
web build with offline support
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 5b99ea6..52cb4b4 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -2,10 +2,10 @@ const createExpoWebpackConfigAsync = require("@expo/webpack-config")
// Expo CLI will await this method so you can optionally return a promise.
module.exports = async function (env, argv) {
- const config = await createExpoWebpackConfigAsync(env, argv)
+ const config = await createExpoWebpackConfigAsync({...env, offline: true}, argv)
// If you want to add a new alias to the config.
// config.resolve.alias["moduleA"] = "moduleB"
-
+
// Maybe you want to turn off compression in dev mode.
if (config.mode === "development") {
config.devServer.compress = false