@ecoding/base.build 0.0.18 → 0.0.20
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/LICENSE.md +0 -0
- package/libs/output/ssr.js +1 -1
- package/libs/z-helpers/mpa.entries.js +3 -3
- package/package.json +2 -2
package/LICENSE.md
ADDED
|
File without changes
|
package/libs/output/ssr.js
CHANGED
|
@@ -14,7 +14,7 @@ const pubPath = () => {
|
|
|
14
14
|
const getOutput = () => {
|
|
15
15
|
return Object.assign({
|
|
16
16
|
// 输出文件目录(将来所有资源输出的公共目录)
|
|
17
|
-
path: rootPath((customConfig.ssr && customConfig.ssr.outputPath) || "../src/ssr"),
|
|
17
|
+
path: rootPath((customConfig.ssr && customConfig.ssr.outputPath) || "../src/ssr-bundle"),
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* 所有资源引入公共路径前缀 --> 'imgs/a.jpg' --> '/imgs/a.jpg'
|
|
@@ -11,15 +11,15 @@ const getEntry = (filename) => {
|
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
// 合并mobile文件目录
|
|
14
|
-
const mbDirPath = rootPath("./src/
|
|
14
|
+
const mbDirPath = rootPath("./src/m");
|
|
15
15
|
let mbPages = [];
|
|
16
16
|
if (fs.existsSync(mbDirPath)) {
|
|
17
17
|
mbPages = fs.readdirSync(dirPath);
|
|
18
18
|
mbPages = mbPages.map((pageName) => {
|
|
19
|
-
return `
|
|
19
|
+
return `m${pageName}`
|
|
20
20
|
});
|
|
21
21
|
mbPages.forEach((pageName) => {
|
|
22
|
-
pagesObj[pageName] = rootPath(`./src/
|
|
22
|
+
pagesObj[pageName] = rootPath(`./src/m/${pageName.replace(/^m/, '')}/${filename}`);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
pages = pages.concat(mbPages);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecoding/base.build",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"description": "tpl building",
|
|
5
5
|
"author": "cxc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "2eccdb818bb0967cf66224859b97fdd77ff343ca"
|
|
57
57
|
}
|