vue.config.js 507 B

1234567891011121314151617181920212223242526
  1. const { defineConfig } = require('@vue/cli-service')
  2. const HtmlWebpackPlugin = require('html-webpack-plugin')
  3. module.exports = defineConfig({
  4. transpileDependencies: true,
  5. css: {
  6. loaderOptions: {
  7. less: {
  8. // 用于babel-plugin-import的less
  9. lessOptions: {
  10. javascriptEnabled: true,
  11. }
  12. },
  13. },
  14. },
  15. chainWebpack: config => {
  16. config
  17. .plugin('html')
  18. .tap(args => {
  19. args[0].title = '模拟机'
  20. return args
  21. })
  22. }
  23. })