vue.config.js 509 B

123456789101112131415161718192021
  1. const path = require("path");
  2. const webpack = require('webpack')
  3. function resolve(dir) {
  4. return path.join(__dirname, dir);
  5. }
  6. module.exports = {
  7. lintOnSave: false,//禁用代码检测
  8. // devServer: {
  9. // proxy: {
  10. // '/api': {
  11. // target: 'http://192.168.1.210:8032'//proxy代理
  12. // }
  13. // }
  14. // }
  15. chainWebpack(config) {
  16. config.plugin('provide').use(webpack.ProvidePlugin, [{
  17. 'window.Quill': 'quill'
  18. }])
  19. }
  20. }