@umijs/server 4.0.0-beta.14 → 4.0.0-beta.18

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/dist/scripts.js CHANGED
@@ -13,7 +13,7 @@ const RE_URL = /^(http:|https:)?\/\//;
13
13
  function normalizeScript(script) {
14
14
  if (typeof script === 'string') {
15
15
  const isUrl = RE_URL.test(script) ||
16
- script.startsWith('/') ||
16
+ (script.startsWith('/') && !script.startsWith('/*')) ||
17
17
  script.startsWith('./') ||
18
18
  script.startsWith('../');
19
19
  return isUrl
package/dist/server.js CHANGED
@@ -44,7 +44,7 @@ function getMarkup(opts) {
44
44
  filters: ['src', 'content'],
45
45
  });
46
46
  return style.src
47
- ? `<link rel="stylesheet" ${attrs} src="${style.src}" />`
47
+ ? `<link rel="stylesheet" ${attrs} href="${style.src}" />`
48
48
  : `<style ${attrs}>${style.content}</style>`;
49
49
  }
50
50
  function getTagContent(opts) {
package/dist/styles.js CHANGED
@@ -13,7 +13,7 @@ const RE_URL = /^(http:|https:)?\/\//;
13
13
  function normalizeStyle(style) {
14
14
  if (typeof style === 'string') {
15
15
  const isUrl = RE_URL.test(style) ||
16
- style.startsWith('/') ||
16
+ (style.startsWith('/') && !style.startsWith('/*')) ||
17
17
  style.startsWith('./') ||
18
18
  style.startsWith('../');
19
19
  return isUrl
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/server",
3
- "version": "4.0.0-beta.14",
3
+ "version": "4.0.0-beta.18",
4
4
  "description": "@umijs/server",
5
5
  "homepage": "https://github.com/umijs/umi-next/tree/master/packages/server#readme",
6
6
  "bugs": "https://github.com/umijs/umi-next/issues",