12345678910111213141516171819202122232425262728293031323334353637 |
- // const Timestamp = new Date().getTime()
- module.exports = {
- devServer: {
- port: 8072,
- https:true,
- client: {
- progress: true,
- },
- proxy: {
- '^/api': {
- target: 'http://localhost:8070',
- ws: false,
- changeOrigin: true,
- logLevel: 'debug',
- pathRewrite: {
- '^/api': '/api',
- },
- }
- }
- },
- publicPath: '/mobile/',
- outputDir: '../src/main/resources/static/mobile',
- productionSourceMap: false,
- // configureWebpack: {
- // output: { // 输出重构 打包编译后的 文件名称 【模块名称.版本号(可选).时间戳】
- // filename: `[name].${Timestamp}.js`,
- // chunkFilename: `[name].${Timestamp}.js`
- // },
- // },
- // css: {
- // extract: { // 打包后css文件名称添加时间戳
- // filename: `css/[name].${Timestamp}.css`,
- // chunkFilename: `css/[name].${Timestamp}.css`
- // }
- // },
- }
|