摘要: 在scripts/start.js文件,注释掉openBrowser(urls.localUrlForBrowser)即可 阅读全文
posted @ 2021-06-15 16:03 徐同保 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 查看有哪些版本: npm view compression-webpack-plugin versions 安装旧版本: yarn add compression-webpack-plugin@5 修改webpack.config.js文件: const Co... 阅读全文
posted @ 2021-06-15 15:54 徐同保 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 安装: yarn add webpackbar 修改webpack.config.js文件: const WebpackBar = require('webpackbar')plugins: [ // ... new webpack.ProgressPlu... 阅读全文
posted @ 2021-06-15 15:06 徐同保 阅读(125) 评论(0) 推荐(0) 编辑
摘要: { "script": { "build": "cross-env GENERATE_SOURCEMAP=false node scripts/build.js" }} 阅读全文
posted @ 2021-06-15 12:48 徐同保 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 装包: yarn add cross-env 配置: "start": "cross-env PORT=3030 node scripts/start.js", 阅读全文
posted @ 2021-06-15 12:40 徐同保 阅读(198) 评论(0) 推荐(0) 编辑
摘要: { "homepage": "/edu/"} 或者: 需要安装 cross-env: yarn add cross-env { "script": { "build": "cross-env PUBLIC_URL=/edu/ node scripts... 阅读全文
posted @ 2021-06-15 12:04 徐同保 阅读(288) 评论(0) 推荐(0) 编辑