mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 20:11:32 +02:00
Merge pull request #2032 from overleaf/as-upgrade-webpack
Upgrade webpack to v4 GitOrigin-RevId: a92c487fee79c29c5314273bf05439c9dbb0ce4d
This commit is contained in:
committed by
sharelatex
parent
2e20975f53
commit
2df7a8eaad
@@ -3,43 +3,45 @@ const merge = require('webpack-merge')
|
||||
const base = require('./webpack.config')
|
||||
|
||||
module.exports = merge(base, {
|
||||
// Enable source maps for dev (fast compilation, slow runtime)
|
||||
devtool: 'cheap-module-eval-source-map',
|
||||
mode: 'development',
|
||||
|
||||
output: {
|
||||
publicPath: '/public/js/es/'
|
||||
},
|
||||
// Enable source maps for dev (fast compilation, slow runtime)
|
||||
devtool: 'cheap-module-eval-source-map',
|
||||
|
||||
devServer: {
|
||||
// Disable webpack dev server auto-reload
|
||||
inline: false,
|
||||
output: {
|
||||
publicPath: '/public/js/es/'
|
||||
},
|
||||
|
||||
// Expose dev server as localhost with dev box
|
||||
host: '0.0.0.0',
|
||||
devServer: {
|
||||
// Disable webpack dev server auto-reload
|
||||
inline: false,
|
||||
|
||||
// Webpack-rails default port for webpack-dev-server
|
||||
port: 3808,
|
||||
// Expose dev server as localhost with dev box
|
||||
host: '0.0.0.0',
|
||||
|
||||
// Allow CORS
|
||||
headers: {
|
||||
'Access-Control-Allow-Origin': '*'
|
||||
},
|
||||
// Webpack-rails default port for webpack-dev-server
|
||||
port: 3808,
|
||||
|
||||
// Customise output to the (node) console
|
||||
stats: {
|
||||
colors: true, // Enable some coloured highlighting
|
||||
timings: true, // Show build timing info
|
||||
assets: true, // Show output bundles
|
||||
warnings: true, // Show build warnings
|
||||
// Hide some overly verbose output
|
||||
hash: false,
|
||||
version: false,
|
||||
chunks: false
|
||||
}
|
||||
},
|
||||
// Allow CORS
|
||||
headers: {
|
||||
'Access-Control-Allow-Origin': '*'
|
||||
},
|
||||
|
||||
// Disable performance budget warnings as code is uncompressed in dev mode
|
||||
performance: {
|
||||
hints: false
|
||||
}
|
||||
// Customise output to the (node) console
|
||||
stats: {
|
||||
colors: true, // Enable some coloured highlighting
|
||||
timings: true, // Show build timing info
|
||||
assets: true, // Show output bundles
|
||||
warnings: true, // Show build warnings
|
||||
// Hide some overly verbose output
|
||||
hash: false,
|
||||
version: false,
|
||||
chunks: false
|
||||
}
|
||||
},
|
||||
|
||||
// Disable performance budget warnings as code is uncompressed in dev mode
|
||||
performance: {
|
||||
hints: false
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user