@dcloudio/uni-cli-shared 2.0.2-4010420240430001 → 2.0.2-4020320240708001

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.
@@ -7,6 +7,7 @@ const {
7
7
 
8
8
  let inputDir
9
9
 
10
+ const uniModulesStaticRe = /uni_modules\/[^/]+\/static\//
10
11
  module.exports = {
11
12
  loader: 'file-loader',
12
13
  options: {
@@ -18,8 +19,10 @@ module.exports = {
18
19
  if (resourcePath.startsWith(inputDir)) {
19
20
  const relativePath = normalizePath(path.relative(inputDir,
20
21
  resourcePath))
21
- if (relativePath.startsWith('static/') || relativePath.includes(
22
- '/static/')) {
22
+ const subPackageStatic = Object.keys(process.UNI_SUBPACKAGES || {}).map(root => normalizePath(path.join(root,
23
+ 'static')) + '/')
24
+ if (relativePath.startsWith('static/') || uniModulesStaticRe.test(relativePath) ||
25
+ subPackageStatic.some(s => relativePath.startsWith(s))) {
23
26
  return relativePath
24
27
  }
25
28
  }
package/lib/preprocess.js CHANGED
@@ -9,6 +9,7 @@ const DEFAULT_KEYS = [
9
9
  'APP-NVUE',
10
10
  'APP-ANDROID',
11
11
  'APP-IOS',
12
+ 'APP-HARMONY',
12
13
  'WEB'
13
14
  ]
14
15
 
@@ -97,4 +98,4 @@ module.exports = function initPreprocess (name, platforms, userDefines = {}) {
97
98
  ...nvueContext
98
99
  }
99
100
  }
100
- }
101
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "2.0.2-4010420240430001",
3
+ "version": "2.0.2-4020320240708001",
4
4
  "description": "uni-cli-shared",
5
5
  "main": "lib/index.js",
6
6
  "repository": {
@@ -26,5 +26,5 @@
26
26
  "postcss-urlrewrite": "^0.2.2",
27
27
  "strip-json-comments": "^2.0.1"
28
28
  },
29
- "gitHead": "a7bbe4fc8a1d686ec33b8183cb0429083d7dd8b2"
29
+ "gitHead": "cdc2b7422b7eb2aaa505b34f92f75464a686d5e1"
30
30
  }