mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-13 12:13:10 +00:00
fix: fix css resources with parameters not loading correctly
This commit is contained in:
parent
141e195931
commit
f859752118
@ -4,12 +4,14 @@ import { createDefer } from './create-defer';
|
|||||||
import { load, evaluate } from './script';
|
import { load, evaluate } from './script';
|
||||||
|
|
||||||
// API 向下兼容
|
// API 向下兼容
|
||||||
export { AssetItem, AssetType, AssetLevels, Asset, AssetList, AssetBundle, AssetLevel, AssetsJson } from '@alilc/lowcode-types';
|
export { AssetType, AssetLevels, Asset, AssetList, AssetBundle, AssetLevel, AssetsJson } from '@alilc/lowcode-types';
|
||||||
|
|
||||||
export function isAssetItem(obj: any): obj is AssetItem {
|
export function isAssetItem(obj: any): obj is AssetItem {
|
||||||
return obj && obj.type;
|
return obj && obj.type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type { AssetItem } from '@alilc/lowcode-types';
|
||||||
|
|
||||||
export function isAssetBundle(obj: any): obj is AssetBundle {
|
export function isAssetBundle(obj: any): obj is AssetBundle {
|
||||||
return obj && obj.type === AssetType.Bundle;
|
return obj && obj.type === AssetType.Bundle;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
export function isCSSUrl(url: string): boolean {
|
export function isCSSUrl(url: string): boolean {
|
||||||
return /\.css$/.test(url);
|
return /\.css(\?.*)?$/.test(url);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user