mirror of
https://github.com/kikobar/mastodon.git
synced 2024-12-27 08:14:25 +00:00
7a7bfa5170
* Add quotes ESLint rule * Add jsx-quotes ESlint rule * Sort ESLint rules
21 lines
653 B
JavaScript
21 lines
653 B
JavaScript
// 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,
|
|
},
|
|
});
|