Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Dissapear all no-overrided CSS-classes in *.scss after upgrade from 1.1.3 to 1.2.0 #461

Open
dudintv opened this issue Feb 21, 2020 · 0 comments

Comments

@dudintv
Copy link

dudintv commented Feb 21, 2020

I've upgraded Tailwind to 1.2.0. I use it among Ruby on Rails(6.0.2) & Webpack(4.41.2).

After upgrade, only overridden CSS-properties still working. It happens only in SCSS files. In CSS it's still working properly. I've changed (upgraded) only Tailwind package, and of course, there was updated all its dependencies (chalk, detective, lodash, ...)

For example:

.red-button { background: red; }  // won't work, it will be disappeared totally

But if I repeat it's working, eg:

.red-button { background: red; }  // will be erased, no matter which color in the first definition
.red-button { background: red; }  // it's working

Or, even that crazy stuff:

.red-button {
  background: red; // will be erased
  & { background: red; }  // it's working
}

postcss.config.js:

module.exports = {
  syntax: 'postcss-scss',
  plugins: [
    require('postcss-import'),
    require('postcss-flexbugs-fixes'),
    require('precss'),
    require('tailwindcss')('./app/javascript/css/tailwind/tailwind.js'),
    require('autoprefixer'),
    require('postcss-preset-env')({
      autoprefixer: {
        flexbox: 'no-2009'
      },
      stage: 3
    })
  ]
}

I didn't change tailwind.js. It remained with the previous version.

What happens?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant