GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: fix css resources with parameters not loading correctly · terwer/lowcode-engine@f859752

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/utils/src
    • asset.ts
    • is-css-url.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/utils/src/asset.ts‎

Copy file name to clipboardExpand all lines: packages/utils/src/asset.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ import { createDefer } from './create-defer';
44
import { load, evaluate } from './script';
55

66
// API 向下兼容
7-
export { AssetItem, AssetType, AssetLevels, Asset, AssetList, AssetBundle, AssetLevel, AssetsJson } from '@alilc/lowcode-types';
7+
export { AssetType, AssetLevels, Asset, AssetList, AssetBundle, AssetLevel, AssetsJson } from '@alilc/lowcode-types';
88

99
export function isAssetItem(obj: any): obj is AssetItem {
1010
return obj && obj.type;
1111
}
1212

13+
export type { AssetItem } from '@alilc/lowcode-types';
14+
1315
export function isAssetBundle(obj: any): obj is AssetBundle {
1416
return obj && obj.type === AssetType.Bundle;
1517
}
Collapse file

‎packages/utils/src/is-css-url.ts‎

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export function isCSSUrl(url: string): boolean {
2-
return /\.css$/.test(url);
2+
return /\.css(\?.*)?$/.test(url);
33
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.