Skip to content

Commit 63763e3

Browse files
authored
Add fastfony/tailwind-webpack-encore-pack recipe (#1869)
* Add fastfony/tailwind-webpack-encore-pack recipe * apply copilot suggestion
1 parent 51a11db commit 63763e3

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"copy-from-recipe": {
3+
"postcss.config.mjs": "postcss.config.mjs"
4+
},
5+
"add-lines": [
6+
{
7+
"file": "webpack.config.js",
8+
"position": "after_target",
9+
"warn_if_missing": true,
10+
"target": " .splitEntryChunks()",
11+
"content": " .enablePostCssLoader()"
12+
},
13+
{
14+
"file": "assets/styles/app.css",
15+
"position": "top",
16+
"content": "@import \"tailwindcss\";\n@source not \"../../public\";\n",
17+
"warn_if_missing": false
18+
}
19+
]
20+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default {
2+
plugins: {
3+
"@tailwindcss/postcss": {},
4+
},
5+
};

0 commit comments

Comments
 (0)