UNPKG

@kanopi/pack

Version:

Pre-packaged Webpack 5 configuration with extendable configuration to coordinate loaders and rules for common web stacks

20 lines (18 loc) 485 B
/** * @typedef {Object} DotEnvConfiguration * @property {boolean} dotenvEnable - If the feature is enabled * @property {Object} dotenvConfiguration - Pass through a DotEnv configuration object */ module.exports = { /** * * @param {DotEnvConfiguration} configuration * @returns {DotEnvConfiguration} */ readEnvironmentVariables: ({ dotenvEnable = true, dotenvConfiguration = {} } = {}) => { return { dotenvEnable, dotenvConfiguration }; } };