mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
bf9473fb41
Unify webpack output GitOrigin-RevId: 5f5ae88f0698236fdce17cf87b4b524078dba4dd
32 lines
832 B
JavaScript
32 lines
832 B
JavaScript
const merge = require('webpack-merge')
|
|
|
|
const base = require('./webpack.config')
|
|
|
|
module.exports = merge(base, {
|
|
mode: 'development',
|
|
|
|
// Enable source maps for dev (fast compilation, slow runtime)
|
|
devtool: 'cheap-module-eval-source-map',
|
|
|
|
devServer: {
|
|
// Disable webpack dev server auto-reload
|
|
inline: false,
|
|
|
|
// Expose dev server as localhost with dev box
|
|
host: '0.0.0.0',
|
|
port: 3808,
|
|
|
|
// Customise output to the (node) console
|
|
stats: {
|
|
colors: true, // Enable some coloured highlighting
|
|
// Hide some overly verbose output
|
|
performance: false, // Disable as code is uncompressed in dev mode
|
|
hash: false,
|
|
version: false,
|
|
chunks: false,
|
|
modules: false,
|
|
// Hide copied assets from output
|
|
excludeAssets: [/^ace/, /^libs/, /^cmaps/]
|
|
}
|
|
}
|
|
})
|