You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
653 B
20 lines
653 B
// Note: You must restart bin/webpack-dev-server for changes to take effect
|
|
|
|
const { resolve } = require('path');
|
|
const { env } = require('process');
|
|
const merge = require('webpack-merge');
|
|
const devConfig = require('./development.js');
|
|
const { devServer, publicPath, paths } = require('./configuration.js');
|
|
|
|
module.exports = merge(devConfig, {
|
|
devServer: {
|
|
host: env.LOCAL_DOMAIN ? '0.0.0.0' : devServer.host,
|
|
port: devServer.port,
|
|
headers: { 'Access-Control-Allow-Origin': '*' },
|
|
compress: true,
|
|
historyApiFallback: true,
|
|
contentBase: resolve(paths.output, paths.entry),
|
|
publicPath,
|
|
disableHostCheck: true,
|
|
},
|
|
});
|
|
|