-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Add PostCSS plugin to fix relative @content and @plugin paths in @imported files
#14063
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
Merged
philipp-spiess
merged 20 commits into
feat/add-content-support
from
feat/fix-relative-at-content-and-at-plugin
Jul 29, 2024
Merged
Changes from 19 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4cbf657
Add PostCSS plugin to fix relative `@content` and `@plugin` paths in …
philipp-spiess a04e2ba
Add invalid path examples
philipp-spiess 74cee52
Run CI on Windows workers
philipp-spiess 4a86bb5
Fix linter issue and append missing ;
philipp-spiess 9721170
Disable fail-fast so that windows tests run through even when mac tes…
philipp-spiess 81ee9c7
Only lint on linux
philipp-spiess 9cdeed9
Revert changes that makes CI run on Windows (and mvoe it to #14065)
philipp-spiess 68c5b16
Move plugin into a separate, private, package
philipp-spiess 13f562e
Run new plugin for CLI and postcss clients
philipp-spiess e297bfe
Use over
philipp-spiess 1162822
Fix relative paths that would have removed
philipp-spiess e5b330d
Fix vite integration by avoiding infinite loops and handling string c…
philipp-spiess 70a96e6
Rename postcss plugin to internal-postcss-fix-relative-paths
philipp-spiess 663181a
Clean up vite config callback
philipp-spiess e60d0b5
Add (failing) test for postcss client
philipp-spiess 64175c5
Fix pnpm dependencies
philipp-spiess 73111a5
Fix linter issues
philipp-spiess e474510
Fix issue with postcss client by converting to a visitor API and avoi…
philipp-spiess 11bf660
Get rid of a few more const
philipp-spiess 2c34553
Apply PR feedback
philipp-spiess 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 hidden or 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 hidden or 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 hidden or 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,9 @@ | ||
| import { defineConfig } from 'tsup' | ||
|
|
||
| export default defineConfig({ | ||
| format: ['esm'], | ||
| clean: true, | ||
| minify: true, | ||
| entry: ['src/index.ts'], | ||
| noExternal: ['internal-postcss-fix-relative-paths'], | ||
| }) |
This file contains hidden or 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
1 change: 1 addition & 0 deletions
1
packages/@tailwindcss-postcss/src/fixtures/example-project/src/relative-import.css
This file contains hidden or 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 @@ | ||
| @plugin '../plugin.js'; |
This file contains hidden or 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 hidden or 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 hidden or 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,12 @@ | ||
| import { defineConfig } from 'tsup' | ||
|
|
||
| export default defineConfig({ | ||
| format: ['esm', 'cjs'], | ||
| clean: true, | ||
| minify: true, | ||
| splitting: true, | ||
| cjsInterop: true, | ||
| dts: true, | ||
| entry: ['src/index.ts'], | ||
| noExternal: ['internal-postcss-fix-relative-paths'], | ||
| }) |
This file contains hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.