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 +1 -1
- package/src/dev-server.js +4 -3
package/package.json
CHANGED
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
|
-
|
|
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);
|