mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 19:52:51 +00:00
fix: fix css resources with parameters not loading correctly
This commit is contained in:
parent
4d6dfe9f57
commit
9a5a04ac95
@ -4,12 +4,14 @@ import { createDefer } from './create-defer';
|
||||
import { load, evaluate } from './script';
|
||||
|
||||
// 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 {
|
||||
return obj && obj.type;
|
||||
}
|
||||
|
||||
export type { AssetItem } from '@alilc/lowcode-types';
|
||||
|
||||
export function isAssetBundle(obj: any): obj is AssetBundle {
|
||||
return obj && obj.type === AssetType.Bundle;
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
export function isCSSUrl(url: string): boolean {
|
||||
return /\.css$/.test(url);
|
||||
return /\.css(\?.*)?$/.test(url);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user