UNPKG

@expo/webpack-config

Version:

The default Webpack configuration used to build Expo apps targeting the web.

12 lines (11 loc) 489 B
import HtmlWebpackPlugin from 'html-webpack-plugin'; import OriginalInterpolateHtmlPlugin from 'react-dev-utils/InterpolateHtmlPlugin'; import { Environment } from '../types'; /** * Add variables to the `index.html`. * * @category plugins */ export default class InterpolateHtmlPlugin extends OriginalInterpolateHtmlPlugin { static fromEnv: (env: Pick<Environment, 'mode' | 'config' | 'locations' | 'projectRoot'>, htmlWebpackPlugin: HtmlWebpackPlugin) => InterpolateHtmlPlugin; }