postcss / postcss-load-config

Autoload Config for PostCSS
MIT License
643 stars 72 forks source link

Config not applied using Yaml formatted with tabs #124

Closed Grawl closed 6 years ago

Grawl commented 6 years ago

Problem

Config file .postcssrc.yaml is not applied if I use Yaml formatted with tabs.

Worked with two spaces.

Details

Working:

plugins:
  postcss-axis: {}
  postcss-short: {}
  postcss-position-alt: {}
  autoprefixer: {}

Not working:

plugins:
    postcss-axis: {}
    postcss-short: {}
    postcss-position-alt: {}
    autoprefixer: {}

Error Logs

There is no error when I using poi

Environment

Please provide information about your environment.

OS Node yarn PostCSS
macOS 10.13.2 9.3.0 1.3.2 5.2.18
Grawl commented 6 years ago

it's ok to format with spaces but I can't find any documentation on this restriction

RyanZim commented 6 years ago

YAML doesn't allow tabs: http://www.yaml.org/faq.html

Grawl commented 6 years ago

wow thank you