const path = require('path');
module.exports = {
    publicPath: process.env.NODE_ENV === 'production' ? '/pc/' : '/',
    productionSourceMap: false,
    devServer: {
        port: 8081
    },
    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'less',
            patterns: [path.resolve(__dirname, './src/styles/common.less')]
        }
    }
};
