added 260907 version of worker toolkit
This commit is contained in:
21
worker-toolkit-flaredown/repo/native/webpack.config.js
Normal file
21
worker-toolkit-flaredown/repo/native/webpack.config.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const createExpoWebpackConfigAsync = require("@expo/webpack-config");
|
||||
|
||||
module.exports = async function (env, argv) {
|
||||
const config = await createExpoWebpackConfigAsync(env, argv);
|
||||
|
||||
// If you want to add a new alias to the config.
|
||||
config.entry = ["./AppEntry.js"];
|
||||
|
||||
// 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;
|
||||
};
|
||||
Reference in New Issue
Block a user