Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 1159932

Browse files
committed
Update types
1 parent fb4845a commit 1159932

File tree

6 files changed

+231
-192
lines changed

6 files changed

+231
-192
lines changed

plugins/css.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,7 @@ export const cssLoader = async ({ specifier, data }: LoadInput, aleph: Aleph): P
1717
const isRemote = util.isLikelyHttpURL(specifier)
1818

1919
// Don't process remote .css files if the cache is disabled
20-
if (
21-
(isRemote && specifier.endsWith('.css')) &&
22-
(
23-
cssConfig.cache === false ||
24-
(cssConfig.cache instanceof RegExp && !cssConfig.cache.test(specifier)) ||
25-
(Array.isArray(cssConfig.cache) && !cssConfig.cache.some(r => r.test(specifier)))
26-
)
27-
) {
20+
if (isRemote && specifier.endsWith('.css') && !cssConfig.cache) {
2821
return {
2922
code: [
3023
`import { applyCSS } from "https://deno.land/x/aleph/framework/core/style.ts"`,

0 commit comments

Comments
 (0)