Closed QSSRobert closed 6 years ago
You're passing in simply a directory name, and postcss-cli is trying to process all the files in the directory, just as you told it to do. If your directory contains non-css files, you'll want to use a glob, like css/*.css
instead of just the directory name.
postcss
seems to be trying to parse a.css.map
file ascss
and breaking as a result.Here's my directory structure:
and
postcss.config.js
and finally my
package.json
, the relevent npm script isbuild:autoprefix-css
I then get the error
Of course, I could be doing something silly in my script, but if I am I can't for the life of me figure out what it is.