Skip to content

Commit 903f0f6

Browse files
committed
Moving most of the webpack-encore-pack recipe to webpack-encore-bundle
1 parent eb7e0f4 commit 903f0f6

File tree

10 files changed

+24
-11
lines changed

10 files changed

+24
-11
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
webpack_encore:
22
# The path where Encore is building the assets.
33
# This should match Encore.setOutputPath() in webpack.config.js.
4-
output_path: '%kernel.public_dir%/build'
4+
output_path: '%kernel.project_dir%/public/build'
Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
{
2+
"bundles": {
3+
"Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": ["all"]
4+
},
25
"copy-from-recipe": {
3-
"config/": "%CONFIG_DIR%/"
4-
}
6+
"assets/": "assets/",
7+
"config/": "%CONFIG_DIR%/",
8+
"package.json": "package.json",
9+
"webpack.config.js": "webpack.config.js"
10+
},
11+
"aliases": ["encore", "webpack", "webpack-encore"],
12+
"gitignore": [
13+
"/node_modules/",
14+
"/%PUBLIC_DIR%/build/",
15+
"npm-debug.log",
16+
"yarn-error.log"
17+
]
518
}

symfony/webpack-encore-pack/1.0/package.json renamed to symfony/webpack-encore-bundle/1.0/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"devDependencies": {
3-
"@symfony/webpack-encore": "^0.20.0",
3+
"@symfony/webpack-encore": "^0.21.0",
44
"webpack-notifier": "^1.6.0"
55
},
66
"license": "UNLICENSED",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<bg=yellow;fg=black> </>
2+
<bg=yellow;fg=black> The symfony/webpack-encore-pack is no longer required anymore. Instead, use symfony/webpack-encore-bundle. </>
3+
<bg=yellow;fg=black> </>
4+
5+
* <fg=blue>Instead</>:
6+
1. Remove it now: <comment>composer remove symfony/webpack-encore-pack</>
7+
2. Use Symfony's bridge: <comment>composer require encore</>

symfony/webpack-encore-pack/1.0/manifest.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
"copy-from-recipe": {
3-
"assets/": "assets/",
4-
"config/": "%CONFIG_DIR%/",
5-
"package.json": "package.json",
6-
"webpack.config.js": "webpack.config.js"
7-
},
8-
"aliases": ["encore", "webpack", "webpack-encore"],
92
"gitignore": [
103
"/node_modules/",
114
"/%PUBLIC_DIR%/build/",

0 commit comments

Comments
 (0)