The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

45 lines
1.1 KiB

  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. const watchOptions = {
  6. ignored: /node_modules/,
  7. };
  8. if (process.env.VAGRANT) {
  9. // If we are in Vagrant, we can't rely on inotify to update us with changed
  10. // files, so we must poll instead. Here, we poll every second to see if
  11. // anything has changed.
  12. watchOptions.poll = 1000;
  13. }
  14. module.exports = merge(sharedConfig, {
  15. mode: 'development',
  16. devtool: 'cheap-module-eval-source-map',
  17. stats: {
  18. errorDetails: true,
  19. },
  20. output: {
  21. pathinfo: true,
  22. },
  23. devServer: {
  24. clientLogLevel: 'none',
  25. https: settings.dev_server.https,
  26. host: settings.dev_server.host,
  27. port: settings.dev_server.port,
  28. contentBase: output.path,
  29. publicPath: output.publicPath,
  30. compress: true,
  31. headers: { 'Access-Control-Allow-Origin': '*' },
  32. historyApiFallback: true,
  33. disableHostCheck: true,
  34. watchOptions: watchOptions,
  35. },
  36. });