mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 12:18:06 +01:00
19 lines
579 B
JavaScript
19 lines
579 B
JavaScript
// Note: You must restart bin/webpack-dev-server for changes to take effect
|
|
|
|
const { resolve } = require('path')
|
|
const merge = require('webpack-merge')
|
|
const devConfig = require('./development.js')
|
|
const { devServer, publicPath, paths } = require('./configuration.js')
|
|
|
|
module.exports = merge(devConfig, {
|
|
devServer: {
|
|
host: devServer.host,
|
|
port: devServer.port,
|
|
headers: { "Access-Control-Allow-Origin": "*" },
|
|
compress: true,
|
|
historyApiFallback: true,
|
|
contentBase: resolve(paths.output, paths.entry),
|
|
publicPath,
|
|
disableHostCheck: true
|
|
}
|
|
})
|