How does parcel use css style?

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.

Sep.05,2021

the css-modules document is here: https://github.com/css-module.

leave the class name unchanged by using : global .

  

as soon as the same question is added, the name of postcssrc class has been changed. I don't know what the heck is.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e560f8-44b0c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e560f8-44b0c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?