front/SvelteViewEngine: don't use css cache in development environment
This commit is contained in:
parent
179cb09b58
commit
c606379bcd
@ -139,7 +139,7 @@ export default class SvelteViewEngine extends ViewEngine {
|
||||
// Get dependencies css
|
||||
const dependenciesCss: string[] = [];
|
||||
for (const dependency of this.resolveAndCacheDependencies(code, canonicalName)) {
|
||||
if (this.cssCache[dependency] === undefined) {
|
||||
if (this.cssCache[dependency] === undefined || !config.get<boolean>('view.cache')) {
|
||||
await this.renderSvelteSsr(dependency, locals);
|
||||
}
|
||||
const css = this.cssCache[dependency];
|
||||
|
Loading…
Reference in New Issue
Block a user