Skip to content
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

🐛 CSSNext (exactly 'postcss-custom-properties') doesn't work. #267

Closed
nakoo opened this issue Dec 14, 2017 · 1 comment
Closed

🐛 CSSNext (exactly 'postcss-custom-properties') doesn't work. #267

nakoo opened this issue Dec 14, 2017 · 1 comment
Labels

Comments

@nakoo
Copy link

nakoo commented Dec 14, 2017

🐛 bug report

🎛 Configuration (.babelrc, package.json, cli command)

postcss.config.js

module.exports = {
  plugins: {
    'postcss-import': {},
    'postcss-cssnext': {
      browsers: ['last 2 versions', '> 5%']
    }
  }
};

CLI

$ parcel build app.js

app.js

import './css/app.css'

🤔 Expected Behavior

Postcss

:root {
 --font: 'Helvetica';
}

body {
 font-family: var(--font);
}

Exported CSS

body {
 font-family: 'Helvetica';
}

😯 Current Behavior

Exported CSS

/* no root pseudo-class */
body {
 font-family: var(--font);
}

💁 Possible Solution

This setting is working great when using webpack + postcss-loader.

🔦 Context

I tried changing the syntax of postcss setting file though there is no hope.

🌍 Your Environment

Software Version(s)
Parcel 1.2.0
Node 9.3.0
npm/Yarn Yarn 1.3.2
Operating System Arch Linux (macOS High Sierra 10.13.2)
@DeMoorJasper DeMoorJasper changed the title cssnext (exactly 'postcss-custom-properties') doesn't work. 🐛 CSSNext (exactly 'postcss-custom-properties') doesn't work. Dec 15, 2017
@nakoo
Copy link
Author

nakoo commented Dec 18, 2017

I will close this issue. After several tries, I found that it is not postcss-cssnext error. I opened #329 again for right.

@nakoo nakoo closed this as completed Dec 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants