You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when working along with postcss-logical module,
postcss-modules generate wrong class name mapping JSON.
postcss-logical is part of postcss-preset-env with stage >= 2 and postcss-preset-env is part of precss.
version:
"gulp-postcss": "8.0.0",
"postcss-modules": "1.5.0",
"precss": "4.0.0",
"postcss-preset-env": "6.7.0"
input:
gulpfile.js
gulp.src('css/broken.css').pipe(postcss([postcssPresetEnv(),// <--- part of precss that causes problem.postcssModules({getJSON: asyncfunctiongenJson(absoluteCssPath,json){console.log(JSON.stringify(json,null,2));},}),])).pipe(gulp.dest('build'))
The text was updated successfully, but these errors were encountered:
jngbng
changed the title
getJSON generate wrong local class name when working with precss(postcssPresetEnv).
getJSON generates wrong local class name when working with precss(postcssPresetEnv).
Apr 17, 2020
problem
when working along with postcss-logical module,
postcss-modules generate wrong class name mapping JSON.
postcss-logical is part of postcss-preset-env with stage >= 2 and postcss-preset-env is part of precss.
version:
input:
gulpfile.js
css/broken.css
output:
build/broken.css
stdout
expected
but, actually got
workaround
Fast workarounds are:
a) to set stage 3 for postcss-preset-env
b) disable 'postcssLogical' featrue
b) do not merge two plugins
The text was updated successfully, but these errors were encountered: