Webpack config that's optimized for running React Native web projects
To learn more about how to use this Webpack config, check out the docs here: Customizing the Webpack config
Running expo customize:web
will generate this default config in your project.
const createExpoWebpackConfigAsync = require('@expo/webpack-config');
module.exports = async function(env, argv) {
const config = await createExpoWebpackConfigAsync(env, argv);
// Customize the config before returning it.
return config;
};
For composing features into an existing Webpack config.
import /* */ '@expo/webpack-config/addons';
Getting the config, paths, mode, and various other settings in your environment.
import /* */ '@expo/webpack-config/env';
The module rules used to load various files.
import /* */ '@expo/webpack-config/loaders';
Custom versions of Webpack Plugins that are optimized for use with React Native.
import /* */ '@expo/webpack-config/plugins';
Tools for resolving fields, or searching and indexing loaders and plugins.
import /* */ '@expo/webpack-config/utils';
The Expo source code is made available under the MIT license. Some of the dependencies are licensed differently, with the BSD license, for example.