vue.config.js 605 B

12345678910111213141516171819202122232425262728
  1. const baseUrl = '/pdflib'
  2. const webpack = require('webpack')
  3. module.exports = {
  4. publicPath: baseUrl,
  5. productionSourceMap: false,
  6. devServer: {
  7. port: 4000,
  8. proxy: {
  9. '/api/': {
  10. target: 'http://localhost:18099'
  11. // target: 'http://192.168.4.1:7001'
  12. },
  13. '/filespath/resource/': {
  14. target: 'http://jjzh.cc-lotus.info'
  15. }
  16. }
  17. },
  18. lintOnSave: false,
  19. chainWebpack: config => {
  20. config.plugin('provide').use(webpack.ProvidePlugin, [{
  21. $: 'jquery',
  22. jquery: 'jquery',
  23. jQuery: 'jquery',
  24. 'window.jQuery': 'jquery'
  25. }])
  26. }
  27. }