chore: webpack config

This commit is contained in:
Mo Bitar
2021-10-23 09:06:59 -05:00
parent 9b06e00ba8
commit 82fc103a3e
6 changed files with 25 additions and 19 deletions

13
webpack-defaults.js Normal file
View File

@@ -0,0 +1,13 @@
const Defaults = {
platform: 'web',
};
function mergeWithEnvDefaults(env) {
for (const key of Object.keys(Defaults)) {
if (!env[key]) {
env[key] = Defaults[key];
}
}
}
module.exports = mergeWithEnvDefaults;