mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
Moving most of the webpack-encore-pack recipe to webpack-encore-bundle
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
webpack_encore:
|
||||
# The path where Encore is building the assets.
|
||||
# This should match Encore.setOutputPath() in webpack.config.js.
|
||||
output_path: '%kernel.public_dir%/build'
|
||||
output_path: '%kernel.project_dir%/public/build'
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
"assets/": "assets/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"package.json": "package.json",
|
||||
"webpack.config.js": "webpack.config.js"
|
||||
},
|
||||
"aliases": ["encore", "webpack", "webpack-encore"],
|
||||
"gitignore": [
|
||||
"/node_modules/",
|
||||
"/%PUBLIC_DIR%/build/",
|
||||
"npm-debug.log",
|
||||
"yarn-error.log"
|
||||
]
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"@symfony/webpack-encore": "^0.20.0",
|
||||
"@symfony/webpack-encore": "^0.21.0",
|
||||
"webpack-notifier": "^1.6.0"
|
||||
},
|
||||
"license": "UNLICENSED",
|
||||
@@ -0,0 +1,7 @@
|
||||
<bg=yellow;fg=black> </>
|
||||
<bg=yellow;fg=black> The symfony/webpack-encore-pack is no longer required anymore. Instead, use symfony/webpack-encore-bundle. </>
|
||||
<bg=yellow;fg=black> </>
|
||||
|
||||
* <fg=blue>Instead</>:
|
||||
1. Remove it now: <comment>composer remove symfony/webpack-encore-pack</>
|
||||
2. Use Symfony's bridge: <comment>composer require encore</>
|
||||
@@ -1,11 +1,4 @@
|
||||
{
|
||||
"copy-from-recipe": {
|
||||
"assets/": "assets/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"package.json": "package.json",
|
||||
"webpack.config.js": "webpack.config.js"
|
||||
},
|
||||
"aliases": ["encore", "webpack", "webpack-encore"],
|
||||
"gitignore": [
|
||||
"/node_modules/",
|
||||
"/%PUBLIC_DIR%/build/",
|
||||
|
||||
Reference in New Issue
Block a user