Skip to content

Upgrade @symfony/webpack-encore to 0.21.0 #892

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from Nov 15, 2018
Merged

Upgrade @symfony/webpack-encore to 0.21.0 #892

merged 1 commit into from Nov 15, 2018

Conversation

devgogo
Copy link
Contributor

@devgogo devgogo commented Nov 7, 2018

@javiereguiluz
Copy link
Member

@wenmingtang I've tested your pull request and it worked perfectly. Thanks a lot for contributing this nice improvement! It's merged now. Cheers!

@javiereguiluz javiereguiluz merged commit db5e658 into symfony:master Nov 15, 2018
javiereguiluz added a commit that referenced this pull request Nov 15, 2018
This PR was merged into the master branch.

Discussion
----------

Upgrade @symfony/webpack-encore to 0.21.0

see [Encore 0.21.0: Webpack 4 Support, Copy Files Support, WebpackEncoreBundle
](https://symfony.com/blog/encore-0-21-0-webpack-4-support-copy-files-support-webpackencorebundle)

Commits
-------

db5e658 Upgrade @symfony/webpack-encore to 0.21.0
.addEntry('js/app', './assets/js/app.js')
.addEntry('js/login', './assets/js/login.js')
.addEntry('js/admin', './assets/js/admin.js')
.addEntry('js/search', './assets/js/search.js')
.addStyleEntry('css/app', ['./assets/scss/app.scss'])
.addStyleEntry('css/admin', ['./assets/scss/admin.scss'])
.splitEntryChunks()
;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at this a bit late but there is a missing Encore.enableSingleRuntimeChunk() or Encore.disableSingleRuntimeChunk() call in this file (https://symfony.com/blog/encore-0-21-0-webpack-4-support-copy-files-support-webpackencorebundle#new-runtime-js-file).

It doesn't make the build fail (for now) but displays a deprecation message when calling Encore:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants