vue.config.js 371 B

1234567891011121314151617181920
  1. /* eslint-disable */
  2. // vue.config.js
  3. const path = require("path");
  4. function resolve(dir) {
  5. return path.join(__dirname, dir);
  6. }
  7. module.exports = {
  8. baseUrl: "./",
  9. chainWebpack: config => {
  10. config.resolve.alias.set('vue$', "vue/dist/vue.js")
  11. config.module
  12. .rule('js')
  13. .exclude
  14. .add(/node_modules/)
  15. .add(/vendor/)
  16. .end()
  17. }
  18. };