I introduced a style file that defined the style of .container
, then ran it using parcel and found that the style didn"t work.
I configured postcss:
{
"modules": true,
"plugins": {
"autoprefixer": {
"grid": true
},
"precss": {}
}
}
</script>
</body>
</html>
after investigation, I found that the class name in my page is .container
, after parcel compilation and conversion of the css file, the original .container
name was converted to . _ container_uquia_5
, because the class names are different, of course, the style is not effective, may I ask how to do this?
it"s fine if I remove the configuration of postcss.