forked from wallabag/wallabag
Webpack upgraded from 4 to 5 + dependancies updated
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
const path = require('path');
|
||||
|
||||
function buildConfig(env) {
|
||||
env = env || 'prod';
|
||||
return require(path.resolve(__dirname, 'app/config/webpack/' + env + '.js'))({ env: env })
|
||||
function buildConfig(options) {
|
||||
const env = options.prod ? 'prod' : 'dev';
|
||||
return require(path.resolve(__dirname, `app/config/webpack/${env}.js`));
|
||||
}
|
||||
|
||||
module.exports = buildConfig;
|
||||
|
||||
Reference in New Issue
Block a user