vue.config.js 576 B

123456789101112131415161718192021222324252627
  1. module.exports = {
  2. devServer: {
  3. open: true, //浏览器自动打开页面
  4. proxy: {
  5. //配置跨域
  6. '/gb28181': {
  7. target: "http://218.59.173.214:8081/api",
  8. changOrigin: true,
  9. }
  10. }
  11. }
  12. }
  13. const CopyWebpackPlugin = require('copy-webpack-plugin')
  14. plugins: [
  15. new CopyWebpackPlugin([{
  16. from: 'node_modules/@liveqing/liveplayer/dist/component/crossdomain.xml'
  17. },
  18. {
  19. from: 'node_modules/@liveqing/liveplayer/dist/component/liveplayer.swf'
  20. },
  21. {
  22. from: 'node_modules/@liveqing/liveplayer/dist/component/liveplayer-lib.min.js',
  23. to: 'js/'
  24. }
  25. ])
  26. ]