vue.config.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
  2. module.exports = {
  3. transpileDependencies: ['vuetify'],
  4. productionSourceMap: process.env.NODE_ENV === 'development',
  5. devServer: {
  6. proxy: {
  7. '^/api': {
  8. // target: 'http://localhost:8080/',
  9. target: 'https://eval-server.seec.seecoder.cn/',
  10. ws: true,
  11. changeOrigin: true
  12. },
  13. '^/analysis_api': {
  14. target: 'https://analysis.seec.seecoder.cn',
  15. pathRewrite: {
  16. '^/analysis_api': '/eval'
  17. },
  18. ws: true,
  19. changeOrigin: true
  20. //token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJza3kiOiJXb0JpU2hlWWFvWGllQnVXYW5MZSEhIn0.QDF9l3beb2vodPMH87adsT4DZL60NU6Zf4uYAxelzg8
  21. }
  22. },
  23. port: 8000
  24. },
  25. configureWebpack: {
  26. plugins: [
  27. new MonacoWebpackPlugin({
  28. languages: ['java', 'python', 'cpp'],
  29. features: [
  30. 'bracketMatching',
  31. 'coreCommands',
  32. 'find',
  33. 'folding',
  34. 'hover',
  35. 'suggest'
  36. ]
  37. })
  38. ]
  39. }
  40. // css: {
  41. // extract: { ignoreOrder: true }
  42. // }
  43. }