how to process PostCSS by Tailwind in Phoenix?

In a somewhat old project I have this a line in assets/package.json

"scripts": {
  "deploy": "NODE_ENV=production tailwindcss --input=css/main.scss --output=../priv/static/assets/main.css --postcss --minify"

which then gets called from mix.exs > assets.deploy

  1. How will I convert it into the setting in config/prod.exs, as it’s recommended nowadays?
    Will I simply copy-paste all that except NODE_ENV=....?
config :tailwind,
  version: "3.2.7",
  default: [
    args: ~w(
    cd: Path.expand("../assets", __DIR__)

Is this a correct way in this case?

  1. Does tailwindcsssupportpostcssand*.scssfiles at all? I haven't found the flag–postcss` in its documentation.

The easiest way is to update the generator you have locally and generate a new project, there you will see how and what is configured.