akfun 5.3.1 → 5.3.2
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 +3 -2
package/package.json
CHANGED
package/src/dev-server.js
CHANGED
|
@@ -118,13 +118,14 @@ module.exports = function (akfunConfig, _consoleTag, callbackFunc) {
|
|
|
118
118
|
// 获取第一个入口文件
|
|
119
119
|
const filename = entryFiles[0];
|
|
120
120
|
const consoleInfo = curEnvConfig.consoleInfo || '当前运行脚本';
|
|
121
|
+
const firstAssetUrl = `${projPath}${filename}.js`
|
|
121
122
|
|
|
122
123
|
if (curEnvConfig.cssExtract || curEnvConfig.cssExtract === undefined) {
|
|
123
124
|
console.info(
|
|
124
125
|
`${consoleInfo}:\n ${projPath}${filename}.js\n当前可用样式[可能不存在]:\n${projPath}${filename}.css`
|
|
125
126
|
);
|
|
126
127
|
} else {
|
|
127
|
-
console.info(`${consoleInfo}:\n ${
|
|
128
|
+
console.info(`${consoleInfo}:\n ${firstAssetUrl}`);
|
|
128
129
|
}
|
|
129
130
|
// 是否自动打开浏览器并跳转到第一个入口页面
|
|
130
131
|
if (!curEnvConfig.closeHtmlWebpackPlugin && autoOpenBrowser) {
|
|
@@ -136,7 +137,7 @@ module.exports = function (akfunConfig, _consoleTag, callbackFunc) {
|
|
|
136
137
|
if (callbackFunc) {
|
|
137
138
|
callbackFunc({
|
|
138
139
|
config: curEnvConfig,
|
|
139
|
-
url:
|
|
140
|
+
url: firstAssetUrl,
|
|
140
141
|
port: port
|
|
141
142
|
});
|
|
142
143
|
}
|