You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
const path = require('path') const resolve = dir => { return path.join(__dirname, dir) } const name = '智慧书架' module.exports = { publicPath: process.env.NODE_ENV === 'development' ? '/' : './', outputDir: 'dist', assetsDir: 'static', lintOnSave: process.env.NODE_ENV === 'development', productionSourceMap: false, devServer: { port: 3000, open: true, overlay: { warnings: false, errors: true }, proxy: { '/dxhtsg/': { target: process.env.VUE_APP_BASE_API, changeOrigin: true, pathRewrite: { '^/dxhtsg': 'dxhtsg' } }, '/auth/': { target: process.env.VUE_APP_BASE_API, changeOrigin: true, pathRewrite: { '^/auth': 'auth' } } } }, configureWebpack: { name: name, resolve: { alias: { '@': resolve('src') } }, performance: { hints: 'warning', // 入口起点的最大体积
maxEntrypointSize: 50000000, // 生成文件的最大体积
maxAssetSize: 30000000 } }, chainWebpack: config => { config.resolve .alias.set('_c', resolve('src/components'))
config.plugin('html') .tap(args => { args[0].title = '智慧书架' return args }) } }
|