chore: webpack config
This commit is contained in:
13
webpack-defaults.js
Normal file
13
webpack-defaults.js
Normal 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;
|
||||
Reference in New Issue
Block a user