akfun 5.3.2 → 5.3.3
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 -1
package/package.json
CHANGED
package/src/dev-server.js
CHANGED
|
@@ -114,11 +114,13 @@ module.exports = function (akfunConfig, _consoleTag, callbackFunc) {
|
|
|
114
114
|
|
|
115
115
|
let entryConfig = webpackConfig.entry || {}; // 获取构建入口配置
|
|
116
116
|
const entryFiles = (entryConfig && Object.keys(entryConfig)) || [];
|
|
117
|
+
let firstAssetUrl = `${projPath}index.js`; // 首个构建入口配置
|
|
118
|
+
|
|
117
119
|
if (entryFiles.length > 0) {
|
|
118
120
|
// 获取第一个入口文件
|
|
119
121
|
const filename = entryFiles[0];
|
|
120
122
|
const consoleInfo = curEnvConfig.consoleInfo || '当前运行脚本';
|
|
121
|
-
|
|
123
|
+
firstAssetUrl = `${projPath}${filename}.js`;
|
|
122
124
|
|
|
123
125
|
if (curEnvConfig.cssExtract || curEnvConfig.cssExtract === undefined) {
|
|
124
126
|
console.info(
|