闭社主体 forked from https://github.com/tootsuite/mastodon
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.

19 lines
586 B

  1. // Note: You must restart bin/webpack-dev-server for changes to take effect
  2. const { resolve } = require('path');
  3. const merge = require('webpack-merge');
  4. const devConfig = require('./development.js');
  5. const { devServer, publicPath, paths } = require('./configuration.js');
  6. module.exports = merge(devConfig, {
  7. devServer: {
  8. host: devServer.host,
  9. port: devServer.port,
  10. headers: { "Access-Control-Allow-Origin": "*" },
  11. compress: true,
  12. historyApiFallback: true,
  13. contentBase: resolve(paths.output, paths.entry),
  14. publicPath,
  15. disableHostCheck: true,
  16. },
  17. });