webpack.start.js 407 B

12345678910111213141516171819202122
  1. /**
  2. * @fileoverview server.
  3. *
  4. * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
  5. * @version 0.1.0.0, Jan 30, 2019
  6. */
  7. const path = require('path')
  8. module.exports = {
  9. mode: 'development',
  10. devServer: {
  11. contentBase: path.join(__dirname, 'demo'),
  12. port: 9000,
  13. proxy: {
  14. '/api': {
  15. target: 'http://localhost:8080',
  16. pathRewrite: {'^/api' : ''}
  17. }
  18. }
  19. }
  20. };