mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
Merge pull request #214 from shoelace-style/konnorrogers/fix-style-reloading-in-dev
fix style reloading with SSR in dev environment
This commit is contained in:
@@ -313,12 +313,10 @@ if (isDeveloping) {
|
||||
|
||||
try {
|
||||
const isTestFile = filename.includes('.test.ts');
|
||||
const isJsStylesheet = filename.includes('.styles.ts');
|
||||
const isCssStylesheet = filename.includes('.css');
|
||||
const isComponent =
|
||||
filename.includes('components/') &&
|
||||
filename.includes('.ts') &&
|
||||
!isJsStylesheet &&
|
||||
!isCssStylesheet &&
|
||||
!isTestFile;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user