@expo/webpack-config
Version:
The default Webpack configuration used to build Expo apps targeting the web.
22 lines • 740 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const config_1 = require("@expo/config");
const paths_1 = require("./paths");
/**
* Get the Expo project config in a way that's optimized for web.
*
* @param env Environment properties used for getting the Expo project config.
* @category env
*/
function getConfig(env) {
if (env.config) {
return env.config;
}
const locations = env.locations || paths_1.getPaths(env.projectRoot);
// Fill all config values with PWA defaults
return config_1.getConfigForPWA(env.projectRoot, locations.absolute, {
templateIcon: locations.template.get('icon.png'),
});
}
exports.default = getConfig;
//# sourceMappingURL=getConfig.js.map