Closed benjaminblack closed 5 years ago
I will test this later today with the upcoming release.
I have tests in .tape.js
for the next release that show this to be working. I also realize that in your example you were sticking browsers
in the process configuration. See https://github.com/csstools/postcss-normalize#browsers
Your documentation page has this example, which is what I was attempting to follow:
import postcssNormalize from 'postcss-normalize';
postcssNormalize.process(YOUR_CSS /*, processOptions, pluginOptions */);
This syntax does not work for me.
Passing it as a plugin option also does not work for me:
postcssNormalize.process(precss, {}, { browsers: 'last 2 versions' });
Node v11.3.0.
Steps to reproduce:
Create test directory
npm init -y
npm install --save-dev postcss-normalize
create
main.postcss
:build.js
:Run
node build.js
. Note that output includes everything (is not restricted to browserslist.)