vue.config.js 420 B

123456789101112131415161718192021
  1. 'use strict'
  2. const path = require('path')
  3. function resolve(dir) {
  4. return path.join(__dirname, dir)
  5. }
  6. module.exports = {
  7. publicPath: '/',
  8. outputDir: 'dist',
  9. assetsDir: 'static',
  10. configureWebpack: {
  11. // provide the app's title in webpack's name field, so that
  12. // it can be accessed in index.html to inject the correct title.
  13. resolve: {
  14. alias: {
  15. '@': resolve('src')
  16. }
  17. }
  18. }
  19. }