const IsProd = process.env.NODE_ENV === 'prod';
const date = new Date();
const Version = '' + date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours();
module.exports = {
    runtimeCompiler: true,
    indexPath: "index.html",
    publicPath: '/',
    outputDir: 'dist',
    configureWebpack: {
        performance: {
            hints: false,
        },
        output: {
            filename: `js/[name].${Version}.js`,
            chunkFilename: `js/[name].${Version}.js`,
        },
    },
    productionSourceMap: IsProd ? false : true,
    chainWebpack:(config)=>{
        config.plugins.delete('preload');
        config.plugins.delete('prefetch');
    },
    devServer: {
        open: true,
        overlay: {
            warning: false,
            errors: false
        },
        https:false,
    },
}
