Package Exports
- @expo/webpack-config
- @expo/webpack-config/addons
- @expo/webpack-config/env
- @expo/webpack-config/loaders
- @expo/webpack-config/plugins
- @expo/webpack-config/utils
- @expo/webpack-config/web-default/expo-service-worker.js
- @expo/webpack-config/withUnimodules
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@expo/webpack-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
👋 Welcome to
@expo/webpack-config
Webpack config that's optimized for running React Native web projects
Documentation
To learn more about how to use this Webpack config, check out the docs here: Customizing the Webpack config
API
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;
};
addons
For composing features into an existing Webpack config.
import /* */ '@expo/webpack-config/addons';
env
Getting the config, paths, mode, and various other settings in your environment.
import /* */ '@expo/webpack-config/env';
loaders
The module rules used to load various files.
import /* */ '@expo/webpack-config/loaders';
plugins
Custom versions of Webpack Plugins that are optimized for use with React Native.
import /* */ '@expo/webpack-config/plugins';
utils
Tools for resolving fields, or searching and indexing loaders and plugins.
import /* */ '@expo/webpack-config/utils';
Contributing to the docs
License
The Expo source code is made available under the MIT license. Some of the dependencies are licensed differently, with the BSD license, for example.