This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-05-02 17:04:16 -07:00
|
|
|
// Note: You must restart bin/webpack-dev-server for changes to take effect
|
|
|
|
|
2017-05-20 08:31:47 -07:00
|
|
|
const { resolve } = require('path');
|
|
|
|
const merge = require('webpack-merge');
|
|
|
|
const devConfig = require('./development.js');
|
|
|
|
const { devServer, publicPath, paths } = require('./configuration.js');
|
2017-05-02 17:04:16 -07:00
|
|
|
|
|
|
|
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),
|
2017-05-04 08:49:05 -07:00
|
|
|
publicPath,
|
2017-05-20 08:31:47 -07:00
|
|
|
disableHostCheck: true,
|
|
|
|
},
|
|
|
|
});
|