vue.config.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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: 'http://47.111.95.164:8080/',
  10. target: 'https://eval-server.seec.seecoder.cn/',
  11. ws: true,
  12. changeOrigin: true
  13. },
  14. '^/analysis_api': {
  15. target: 'https://analysis.seec.seecoder.cn',
  16. pathRewrite: {
  17. '^/analysis_api': '/eval'
  18. }
  19. //token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJza3kiOiJXb0JpU2hlWWFvWGllQnVXYW5MZSEhIn0.QDF9l3beb2vodPMH87adsT4DZL60NU6Zf4uYAxelzg8
  20. }
  21. },
  22. port: 8000
  23. },
  24. configureWebpack: {
  25. plugins: [
  26. new MonacoWebpackPlugin({
  27. languages: ['java', 'python', 'cpp'],
  28. features: [
  29. 'bracketMatching',
  30. 'coreCommands',
  31. 'find',
  32. 'folding',
  33. 'hover',
  34. 'suggest'
  35. ]
  36. })
  37. ]
  38. }
  39. // css: {
  40. // extract: { ignoreOrder: true }
  41. // }
  42. }