Posted 2023-06-08Updated 2023-06-08前端 / 前端工程化a few seconds read (About 79 words)devServer1.devServer基本配置 开发环境下自动编译,自动打开浏览器 123456789101112131415{ module.exports = { // 开发服务器, 在开发过程中热加载项目 devServer: { // 构建后的项目运行的目录 contentBase: path.resolve(dirs.build), // 启动gzip压缩 compress: true, // 端口号 port: 8100, // 自动打开浏览器 open: false, } }} #前端工程化