From e5021187e96b78b53203bd95d08d6818aea47d17 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 14 Jul 2021 15:10:31 +0200 Subject: New Ignite 7.0.6 app --- webpack.config.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 webpack.config.js (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..5b99ea6 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,21 @@ +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) + // 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 + } + + // Or prevent minimizing the bundle when you build. + // if (config.mode === "production") { + // config.optimization.minimize = false + // } + + // Finally return the new config for the CLI to use. + return config +} -- cgit v1.2.3