akfun 3.1.3 → 3.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akfun",
3
- "version": "3.1.3",
3
+ "version": "3.1.5",
4
4
  "description": "前端脚手架:支持Vue技术栈和react技术栈",
5
5
  "keywords": [
6
6
  "前端工程",
package/src/dev-server.js CHANGED
@@ -111,11 +111,12 @@ module.exports = function (akfunConfig, _consoleTag) {
111
111
  if (err) {
112
112
  _reject(err);
113
113
  }
114
+ spinner.succeed(`${consoleTag}调试模式已开启!`);
115
+
114
116
  process.env.PORT = port;
115
117
  const uri = `http://${config.dev.hostname}:${port}`;
116
-
117
118
  console.log(`> Listening at ${uri}\n`);
118
- spinner.succeed(`${consoleTag}调试模式已开启!`);
119
+
119
120
  // 打印当前环境中的首个html和css地址
120
121
  const projPath = `${uri}${webpackConfig.output.publicPath}`;
121
122
  let entryConfig = webpackConfig.entry || {}; // 获取构建入口配置
@@ -128,7 +129,7 @@ module.exports = function (akfunConfig, _consoleTag) {
128
129
  );
129
130
  }
130
131
  // 是否自动打开浏览器并跳到项目首页
131
- if (autoOpenBrowser) {
132
+ if (!config.dev.closeHtmlWebpackPlugin && autoOpenBrowser) {
132
133
  open(`${projPath}${filename}.html`, { wait: true });
133
134
  }
134
135
  server = app.listen(port);