Skip to content

Latest commit

 

History

History
 
 

webpack-config

👋 Welcome to
@expo/webpack-config

Webpack config that's optimized for running React Native web projects

Circle CI


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.


License: MIT