Skip to content

Filters not working on production build #7131

Answered by adamwathan
huco95 asked this question in Help
Discussion options

You must be logged in to vote

The issue is in your minifier, you must be using some old version of cssnano or similar that is improperly minifying the CSS.

Here's the difference between v3.0.11 and v3.0.12:

/* v3.0.11 */
* {
  --tw-blur: var(--tw-empty,/*!*/ /*!*/);
  --tw-brightness: var(--tw-empty,/*!*/ /*!*/);
  --tw-contrast: var(--tw-empty,/*!*/ /*!*/);
  --tw-grayscale: var(--tw-empty,/*!*/ /*!*/);
  --tw-hue-rotate: var(--tw-empty,/*!*/ /*!*/);
  --tw-invert: var(--tw-empty,/*!*/ /*!*/);
  --tw-saturate: var(--tw-empty,/*!*/ /*!*/);
  --tw-sepia: var(--tw-empty,/*!*/ /*!*/);
  --tw-drop-shadow: var(--tw-empty,/*!*/ /*!*/);
}

/* v3.0.12 */
* {
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-graysc…

Replies: 11 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@willcosgrove
Comment options

@huco95
Comment options

Comment options

You must be logged in to vote
1 reply
@Benjamin-Lee
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@prikr
Comment options

Comment options

You must be logged in to vote
1 reply
@daafbleumink
Comment options

Answer selected by huco95
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@riderx
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet