Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tailwindlabs/tailwindcss
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.4.7
Choose a base ref
...
head repository: tailwindlabs/tailwindcss
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.4.8
Choose a head ref
  • 5 commits
  • 20 files changed
  • 3 contributors

Commits on Aug 1, 2024

  1. Configuration menu
    Copy the full SHA
    28bd90e View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2024

  1. Bump to latest cssnano v6 (#14105)

    We bundle cssnano in our CLI and it's on an older version that does not
    handle nested CSS correctly. This PR updates it to the latest version of
    v6.x
    
    Fixes #14092
    thecrypticace authored Aug 2, 2024
    Configuration menu
    Copy the full SHA
    1f23c2e View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2024

  1. Warn when broad glob patterns are used in the content configuration (#…

    …14140)
    
    When you use a glob pattern in your `content` configuration that is too
    broad, it could be that you are accidentally including files that you
    didn't intend to include. E.g.: all of `node_modules`
    
    This has been documented in the [Tailwind CSS
    documentation](https://tailwindcss.com/docs/content-configuration#pattern-recommendations),
    but it's still something that a lot of people run into.
    
    This PR will try to detect those patterns and show a big warning to let
    you know if you may have done something wrong.
    
    We will show a warning if all of these conditions are true:
    
    1. We detect `**` in the glob pattern
    2. _and_ you didn't explicitly use `node_modules` in the glob pattern
    3. _and_ we found files that include `node_modules` in the file path
    4. _and_ no other globs exist that explicitly match the found file
    
    With these rules in place, the DX has nice trade-offs:
    
    1. Very simple projects (that don't even have a `node_modules` folder),
    can simply use `./**/*` because while resolving actual files we won't
    see files from `node_modules` and thus won't warn.
    2. If you use `./src/**` and you do have a `node_modules`, then we also
    won't complain (unless you have a `node_modules` folder in the `./src`
    folder).
    3. If you work with a 3rd party library that you want to make changes
    to. Using an explicit match like `./node_modules/my-package/**/*` is
    allowed because `node_modules` is explicitly mentioned.
    
    Note: this only shows a warning, it does not stop the process entirely.
    The warning will be show when the very first file in the `node_modules`
    is detected.
    
    <!--
    
    👋 Hey, thanks for your interest in contributing to Tailwind!
    
    **Please ask first before starting work on any significant new
    features.**
    
    It's never a fun experience to have your pull request declined after
    investing a lot of time and effort into a new feature. To avoid this
    from happening, we request that contributors create an issue to first
    discuss any significant new features. This includes things like adding
    new utilities, creating new at-rules, or adding new component examples
    to the documentation.
    
    
    https://github.com/tailwindcss/tailwindcss/blob/master/.github/CONTRIBUTING.md
    
    -->
    
    ---------
    
    Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
    RobinMalfait and adamwathan authored Aug 7, 2024
    Configuration menu
    Copy the full SHA
    858696a View commit details
    Browse the repository at this point in the history
  2. rename master to main

    RobinMalfait committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    69c81f2 View commit details
    Browse the repository at this point in the history
  3. 3.4.8

    RobinMalfait committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    1676118 View commit details
    Browse the repository at this point in the history
Loading