mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 15:01:36 +01:00
500e28442f
ref #2790
33 lines
801 B
JavaScript
33 lines
801 B
JavaScript
// Note: You must restart bin/webpack-dev-server for changes to take effect
|
|
|
|
const merge = require('webpack-merge');
|
|
const sharedConfig = require('./shared.js');
|
|
const { settings, output } = require('./configuration.js');
|
|
|
|
module.exports = merge(sharedConfig, {
|
|
devtool: 'cheap-module-eval-source-map',
|
|
|
|
stats: {
|
|
errorDetails: true,
|
|
},
|
|
|
|
output: {
|
|
pathinfo: true,
|
|
},
|
|
|
|
devServer: {
|
|
clientLogLevel: 'none',
|
|
https: settings.dev_server.https,
|
|
host: settings.dev_server.host,
|
|
port: settings.dev_server.port,
|
|
contentBase: output.path,
|
|
publicPath: output.publicPath,
|
|
compress: true,
|
|
headers: { 'Access-Control-Allow-Origin': '*' },
|
|
historyApiFallback: true,
|
|
disableHostCheck: true,
|
|
watchOptions: {
|
|
ignored: /node_modules/,
|
|
},
|
|
},
|
|
});
|