mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
5bc4ce09a7
Use devtool: 'eval-source-map' GitOrigin-RevId: c2b5a7b4052754f8654c46580890fbde87f443a5
41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
const merge = require('webpack-merge')
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
|
|
|
const base = require('./webpack.config')
|
|
|
|
module.exports = merge(base, {
|
|
mode: 'development',
|
|
|
|
// Enable accurate source maps for dev
|
|
devtool: 'eval-source-map',
|
|
|
|
plugins: [
|
|
// Extract CSS to a separate file (rather than inlining to a <style> tag)
|
|
new MiniCssExtractPlugin({
|
|
// Output to public/stylesheets directory
|
|
filename: 'stylesheets/[name].css'
|
|
})
|
|
],
|
|
|
|
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: [/^js\/ace/, /^js\/libs/, /^js\/cmaps/]
|
|
}
|
|
}
|
|
})
|