闭社主体 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.

32 lines
773 B

  1. // Note: You must restart bin/webpack-dev-server for changes to take effect
  2. const merge = require('webpack-merge');
  3. const sharedConfig = require('./shared.js');
  4. const { settings, output } = require('./configuration.js');
  5. module.exports = merge(sharedConfig, {
  6. devtool: 'cheap-module-eval-source-map',
  7. stats: {
  8. errorDetails: true,
  9. },
  10. output: {
  11. pathinfo: true,
  12. },
  13. devServer: {
  14. clientLogLevel: 'none',
  15. https: settings.dev_server.https,
  16. host: settings.dev_server.host,
  17. port: settings.dev_server.port,
  18. contentBase: output.path,
  19. publicPath: output.publicPath,
  20. compress: true,
  21. headers: { 'Access-Control-Allow-Origin': '*' },
  22. historyApiFallback: true,
  23. watchOptions: {
  24. ignored: /node_modules/,
  25. },
  26. },
  27. });