akfun 2.0.3 → 2.0.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": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "前端脚手架:支持Vue技术栈和react技术栈",
5
5
  "keywords": [
6
6
  "前端工程",
package/src/dev-server.js CHANGED
@@ -114,7 +114,7 @@ module.exports = function (akfunConfig, _consoleTag) {
114
114
  const uri = `http://${config.dev.hostname}:${port}`;
115
115
  console.log(`> Listening at ${uri}\n`);
116
116
  // 如果是开发环境,自动打开浏览器并跳到项目首页
117
- if (autoOpenBrowser && process.NODE_ENV === 'development') {
117
+ if (autoOpenBrowser) {
118
118
  spinner.succeed(`${consoleTag}调试模式已开启!`);
119
119
  opn(uri);
120
120
  }