mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
2e112e2406
* Add semi to ESLint rules * Add padded-blocks to ESLint rules * Add comma-dangle to ESLint rules * add config/webpack and storyboard * add streaming/ * yarn test:lint -- --fix
20 lines
586 B
JavaScript
20 lines
586 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,
|
|
},
|
|
});
|