mirror of
https://github.com/symfony/recipes.git
synced 2026-09-21 20:16:37 +03:00
[FrameworkBundle][WebpackEncoreBundle][SassBundle][TailwindBundle][Reprise] Add support for .symfony.local.yaml file (#1474)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
// add your SASS styles in this file
|
||||
@@ -0,0 +1,3 @@
|
||||
symfonycasts_sass:
|
||||
root_sass:
|
||||
- 'assets/styles/app.scss'
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Symfonycasts\\SassBundle\\SymfonycastsSassBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"assets/": "assets/"
|
||||
},
|
||||
"aliases": ["symfonycasts_sass"],
|
||||
"gitignore": [
|
||||
"/%PUBLIC_DIR%/assets/"
|
||||
],
|
||||
"add-lines": [
|
||||
{
|
||||
"requires": "symfony/asset-mapper",
|
||||
"file": "config/packages/asset_mapper.yaml",
|
||||
"position": "after_target",
|
||||
"warn_if_missing": true,
|
||||
"target": " missing_import_mode: strict",
|
||||
"content": [
|
||||
" excluded_patterns:",
|
||||
" - '**/assets/styles/*/_*.scss'"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": ".symfony.local.yaml",
|
||||
"content": [
|
||||
" # Watch and build Sass files",
|
||||
" sass:",
|
||||
" cmd: ['symfony', 'console', 'sass:build', '--watch']"
|
||||
],
|
||||
"position": "after_target",
|
||||
"target": "workers:",
|
||||
"warn_if_missing": true
|
||||
}
|
||||
],
|
||||
"conflict": {
|
||||
"symfony/asset-mapper": "<6.3"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user