const path = require('path')
const resolve =_path=>path.resolve(_path)

module.exports = {
    publicPath: process.env.NODE_ENV === 'production'
    ? '/h5/'
    : '/',
    lintOnSave: false,
    outputDir: 'h5',
    productionSourceMap: false,
    // devServer: {
    //     proxy: {
    //         '/api': {
    //             // target: 'http://10.113.233.62:8081/',
    //             target: 'http://49.232.26.44:8090/',
    //             ws: true,
    //             changeOrigin: true,
    //             pathRewrite: {
    //                 '^/api': ''
    //             }
    //         }
    //     }
    // }
    configureWebpack: {
        resolve: {
            alias: {
                '@': resolve('src')
            }
        }
    }
}