$ npm i tailwindcss --save
$ npx tailwind init
$ npm add @angular-builders/custom-webpack
in src/styles.scss
@tailwind base;
@tailwind components;
@tailwind utilities;
"architect": {
"build": {
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"customWebpackConfig": {
"path": "./extra-webpack.config.js"
},
...
},
}
},
"serve":{
"builder": "@angular-builders/custom-webpack:dev-server"
}
module.exports = {
module: {
rules: [
{
test: /\.scss$/,
use: [
{
loader: "postcss-loader",
options: {
plugins: [require("tailwindcss")("./tailwind.config.js")]
}
}
]
}
]
}
};