You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/webpack.config.js

15 lines
394 B

const { merge } = require('webpack-merge')
const config = require('./webpack.common.js')
let isDev = false
try {
const buildMode = process.env.NODE_ENV
isDev = buildMode === 'development'
} catch (e) {
console.error('Could not determine build mode', e)
}
module.exports = merge(config, {
mode: isDev ? 'development' : 'production',
devtool: isDev ? 'cheap-source-map' : 'source-map',
})