vue.config.js 1.1 KB

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