hejianhao
2026-01-09 be5d0750301ebad72f9f7f94e3b878bce43d4ec8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = {
  outputDir: 'screen', // 配置打包后的文件夹名称
  configureWebpack: {
    output: {
      filename: 'js/[name].[hash:8].js', // 配置打包后的文件名
      chunkFilename: 'js/[name].[hash:8].js' // 配置打包后的chunk文件名
    }
  },
  publicPath: process.env.NODE_ENV === 'production' ? '/large' : '/',
  devServer: {
    disableHostCheck: true,
  },
  lintOnSave: false,
  css: {
    loaderOptions: {
      postcss: {
        plugins: [require('tailwindcss'), require('autoprefixer')]
      }
    }
  },
}