mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-27 16:36:00 +00:00
Webpack upgraded from 4 to 5 + dependancies updated
This commit is contained in:
parent
c8e7722fd1
commit
9937d3a060
7 changed files with 1634 additions and 2204 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue