vue.config.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * @Author: your name
  3. * @Date: 2020-04-17 09:01:26
  4. * @LastEditTime: 2021-01-29 12:14:46
  5. * @LastEditors: Please set LastEditors
  6. * @Description: In User Settings Edit
  7. * @FilePath: \bSpaceDesign\vue.config.js
  8. */
  9. /**
  10. *@desc webpack配置文件
  11. */
  12. // const path = require('path')
  13. // const resolve = dir => {
  14. // return path.join(__dirname, dir)
  15. // }
  16. module.exports = {
  17. runtimeCompiler: true,
  18. // // 放置静态资源的地方 (js/css/img/font/...)
  19. // assetsDir: 'static',
  20. // // 是否为生产环境构建生成 source map?
  21. // productionSourceMap: false,
  22. // // 配置 webpack-dev-server 行为。
  23. // devServer: {
  24. // open: true
  25. // },
  26. // publicPath: './',
  27. // // 将构建好的文件输出到哪里
  28. // outputDir: 'dist',
  29. // chainWebpack: config => {
  30. // config.resolve.alias
  31. // .set('@', resolve('src')) // key,value自行定义,比如.set('@@', resolve('src/components'))
  32. // // .set('_c', resolve('src/components'))
  33. // // .set('_conf', resolve('src/config'))
  34. // },
  35. // pluginOptions: {
  36. // 'style-resources-loader': {
  37. // preProcessor: 'less',
  38. // patterns: [path.resolve(__dirname, './src/assets/css/variable.less')]
  39. // }
  40. // }
  41. }