module.exports = { productionSourceMap: false, publicPath: "./", devServer: { open: true, // host: "10.16.4.3", port: 8080, https: false, hotOnly: false, }, css: { loaderOptions: { postcss: { // 这是rem适配的配置 注意: remUnit在这里要根据lib-flexible的规则来配制,如果您的设计稿是750px的,用75就刚刚好。 plugins: [ require("postcss-px2rem")({ remUnit: 192 }) ] } } } };