mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-18 18:46:48 +03:00
Add fastfony/tailwind-webpack-encore-pack recipe (#1869)
* Add fastfony/tailwind-webpack-encore-pack recipe * apply copilot suggestion
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"copy-from-recipe": {
|
||||
"postcss.config.mjs": "postcss.config.mjs"
|
||||
},
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "webpack.config.js",
|
||||
"position": "after_target",
|
||||
"warn_if_missing": true,
|
||||
"target": " .splitEntryChunks()",
|
||||
"content": " .enablePostCssLoader()"
|
||||
},
|
||||
{
|
||||
"file": "assets/styles/app.css",
|
||||
"position": "top",
|
||||
"content": "@import \"tailwindcss\";\n@source not \"../../public\";\n",
|
||||
"warn_if_missing": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
export default {
|
||||
plugins: {
|
||||
"@tailwindcss/postcss": {},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user