Changeset View
Changeset View
Standalone View
Standalone View
swh/web/assets/config/webpack.config.development.js
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | module.exports = { | ||||
// webpack-dev-server configuration | // webpack-dev-server configuration | ||||
devServer: { | devServer: { | ||||
clientLogLevel: 'warning', | clientLogLevel: 'warning', | ||||
port: devServerPort, | port: devServerPort, | ||||
publicPath: devServerPublicPath, | publicPath: devServerPublicPath, | ||||
// enable to serve static assets not managed by webpack | // enable to serve static assets not managed by webpack | ||||
contentBase: path.resolve('./swh/web/'), | contentBase: path.resolve('./swh/web/'), | ||||
// we do not use hot reloading here (as a framework like React needs to be used in order to fully benefit from that feature) | // we do not use hot reloading here (as a framework like React needs to be used in order to fully benefit from that feature) | ||||
// and prefere to fully reload the frontend application in the browser instead | // and prefer to fully reload the frontend application in the browser instead | ||||
hot: false, | hot: false, | ||||
inline: true, | inline: true, | ||||
historyApiFallback: true, | historyApiFallback: true, | ||||
headers: { | headers: { | ||||
'Access-Control-Allow-Origin': '*' | 'Access-Control-Allow-Origin': '*' | ||||
}, | }, | ||||
compress: true, | compress: true, | ||||
stats: 'errors-only', | stats: 'errors-only', | ||||
▲ Show 20 Lines • Show All 327 Lines • Show Last 20 Lines |