text: const appConfig = require('./src/app.config')
  
  /** @type import('@vue/cli-service').ProjectOptions */
  module.exports = {
    configureWebpack: {
      // We provide the app's title in Webpack's name field, so that
      // it can be accessed in index.html to inject the correct title.
      name: appConfig.title,
      // Set up all the aliases we use in our app.
      resolve: {
        alias: require('./aliases.config').webpack,
      },
      performance: {
        // Only enable performance hints for production builds,
        // outside of tests.
        hints:
          process.env.NODE_ENV === 'production' &&
          !process.env.VUE_APP_TEST &&
          'warning',
      },
    },
    css: {
      // Enable CSS source maps.
      sourceMap: true,
    },
    // Configure Webpack's dev server.
    // https://cli.vuejs.org/guide/cli-service.html
    devServer: {
      ...(process.env.API_BASE_URL
        ? // Proxy API endpoints to the production base URL.
          { proxy: { '/api': { target: process.env.API_BASE_URL } } }
        : // Proxy API endpoints a local mock API.
          { before: require('./tests/mock-api') }),
          index: "index.html", // 默认启动serve 打开index页面
         
          open: true, // 配置自动启动浏览器
          
          
          https: true,
    },
  }
  