Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Encore] Don't enable the Sass loader at the beginning of the First Example page#9526

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@Lyrkan
Copy link
Contributor

@LyrkanLyrkan commentedMar 30, 2018
edited
Loading

Someone pointed out insymfony/webpack-encore#287 that if you follow theFirst example page from top to bottom you are going to runyarn encore before being informed that callingenableSassLoader() implies adding additional dependencies (which is done just after).

This PR moves the related paragraph to warn the user that Encore will tell him about missing packages before he encounters the error.

I also added the "after running it" part to make it a bit more obvious that the information is going to be present in the command output.

Edit: Changed it soenableSassLoader() is commented before running Encore for the first time

@weaverryan
Copy link
Member

I also think the report is legit@Lyrkan. But, what about commenting out all of the features that require extra packages so that the first build is successful? Then we can show an example of uncommenting theenableSassLoader() so they can see what happens in that case (we could use thediff file type in the docs to show that one line being uncommented). I think that would be best.

@LyrkanLyrkanforce-pushed thewarn-missing-sass-dependencies branch fromc0cfd35 tob071ed2CompareMarch 31, 2018 18:53
@LyrkanLyrkan changed the title[Encore] Proactively warn the user that enableSassLoader() needs additional packages[Encore] Don't enable the Sass loader at the beginning of the First Example pageMar 31, 2018
@Lyrkan
Copy link
ContributorAuthor

@weaverryan I agree, should be better now :)

@javiereguiluzjaviereguiluz changed the base branch from3.3 to3.4April 16, 2018 13:10
@javiereguiluzjaviereguiluzforce-pushed thewarn-missing-sass-dependencies branch fromb071ed2 to18586e2CompareApril 16, 2018 13:10
@javiereguiluz
Copy link
Member

@Lyrkan this was a great first contribution to Symfony Docs! Thanks a lot.

@javiereguiluzjaviereguiluz merged commit18586e2 intosymfony:3.4Apr 16, 2018
javiereguiluz added a commit that referenced this pull requestApr 16, 2018
… the First Example page (Lyrkan)This PR was submitted for the 3.3 branch but it was merged into the 3.4 branch instead (closes#9526).Discussion----------[Encore] Don't enable the Sass loader at the beginning of the First Example pageSomeone pointed out insymfony/webpack-encore#287 that if you follow the [First example](http://symfony.com/doc/master/frontend/encore/simple-example.html) page from top to bottom you are going to run `yarn encore` before being informed that calling `enableSassLoader()` implies adding additional dependencies (which is done just after).~~This PR moves the related paragraph to warn the user that Encore will tell him about missing packages before he encounters the error.~~~~I also added the "after running it" part to make it a bit more obvious that the information is going to be present in the command output.~~**Edit:** Changed it so `enableSassLoader()` is commented before running Encore for the first timeCommits-------18586e2 [Encore] Don't enable the Sass loader at the beginning of the First Example page
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

4 participants

@Lyrkan@weaverryan@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp