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
- How will I convert it into the setting in
config/prod.exs
, as it’s recommended nowadays?
Will I simply copy-paste all that exceptNODE_ENV=....
?
config :tailwind,
version: "3.2.7",
default: [
args: ~w(
--config=tailwind.config.js
--input=css/main.scss
--output=../priv/static/assets/app.css
--postcss
--minify
),
cd: Path.expand("../assets", __DIR__)
]
Is this a correct way in this case?
- Does tailwindcss
support
postcssand
*.scssfiles at all? I haven't found the flag
–postcss` in its documentation.