-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweaker litt for å gjøre det enklere å kjøre dekoratøren i dev-modus integrert med andre apper lokalt - Legger inn paths i tsconfig for delte mapper så IDE'er slutter å klage - Legger inn dummy-verdi for styles-container i dev-modus, for at nav-dekoratoren-moduler ikke skal forkaste responsen - Legger inn faste classnames for CSS-modules i dev-modus, for at disse ikke skal komme ut av sync med html'en ved HMR når CSS'en hot-reloades
- Loading branch information
1 parent
9422b03
commit 7e753b4
Showing
7 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Create stable classnames in dev mode, in order to not break in HMR when loaded via other apps | ||
export const cssModulesScopedNameOption = | ||
process.env.NODE_ENV === 'development' | ||
? { | ||
generateScopedName: '[name]__[local]', | ||
} | ||
: {}; |