-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Support SASS #52
Merged
Merged
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
186147d
feat: (In Progress) Support SASS
ntt261298 e52d4a1
refactor: Remove jest preview configure in setupTests
ntt261298 6108ec8
refactor: Add partial scss style
ntt261298 f515658
fix: Move config jest-preview to setupFilesAfterEnv
ntt261298 76e7d3f
fix: Use fs.existsSync to check if sassLoadPathsConfigPath exists
ntt261298 c8b853d
fix: Move sass compile out of of run time phase
ntt261298 290b8e4
fix: Update code style for sass configure
ntt261298 0571ef6
feat: Add example for pre-configured sass file issue
ntt261298 0ab3b65
chore: Add global scss style to main app
nvh95 eca8a24
Merge branch 'main' into sass-support
ntt261298 54e3428
chore: Update partial name for global scss
nvh95 99de46e
chore: use sass.compile instead of sass.compileString
nvh95 0a3057b
Merge branch 'sass-support' of github.com:nvh95/jest-preview-dom into…
ntt261298 32862e0
feat: Use CLI to transform sass in configure.ts, compile to transform…
ntt261298 0b2d56e
refactor: Update vite-react example to support global scss
ntt261298 0a4aae1
docs: Update docs for sass
nvh95 e7668b5
fix: Correct css cache filenames
ntt261298 4761899
refactor: Use filename as the fallback for scss transformer
ntt261298 baab8a5
fix: Add createCacheFolderIfNeeded util, add comment to clarify exec …
ntt261298 1d4892c
refactor: Update demo, vite example
ntt261298 8225289
Merge branch 'main' into sass-support
nvh95 9d44c67
chore: release 0.1.5-alpha.0
nvh95 74d43d2
Merge branch 'main' into sass-support
nvh95 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@import 'partials/partial-global-style'; // Example using @import | ||
|
||
header { | ||
.global-configured-sass { | ||
color: yellow; | ||
} | ||
} |
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,5 @@ | ||
header { | ||
.global-configured-sass { | ||
text-transform: uppercase; | ||
} | ||
} |
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,5 @@ | ||
header { | ||
.imported-sass { | ||
text-transform: uppercase; | ||
} | ||
} |
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 @@ | ||
@use 'partials/partial-style'; // Example using @use | ||
|
||
header { | ||
.imported-sass { | ||
color: pink; | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
@import 'partials/partial-global-style'; // Example using @import | ||
|
||
header { | ||
.global-configured-sass { | ||
color: yellow; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
examples/vite-react/src/assets/_scss/partials/_partial-global-style.scss
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,5 @@ | ||
header { | ||
.global-configured-sass { | ||
text-transform: uppercase; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
examples/vite-react/src/assets/_scss/partials/_partial-style.scss
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,5 @@ | ||
header { | ||
.imported-sass { | ||
text-transform: uppercase; | ||
} | ||
} |
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 @@ | ||
@use 'partials/partial-style'; // Example using @use | ||
|
||
header { | ||
.imported-sass { | ||
color: pink; | ||
} | ||
} |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is to remind not forget to update README.md on CSS transform