Skip to content

add style-loader to tutorial "Code Splitting - CSS" #1140

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 2 commits into from
Apr 22, 2017

Conversation

TomTasche
Copy link
Contributor

fixes #1131

Copy link
Collaborator

@skipjack skipjack left a comment

Choose a reason for hiding this comment

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

Left some minor comments, all in all it looks good though. Thanks for your contribution!


Install the [`css-loader`](/loaders/css-loader) loader:
Install the [`css-loader`](/loaders/css-loader) and [`style-loader`](/loaders/style-loader) loaders:
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can probably leave out the final "loaders" here, e.g. "Install the css-loader and style-loader:" sounds better imo.

}]
}
}
```

As a result, the CSS is bundled along with your JavaScript.
As a result, the CSS is bundled along with your JavaScript and applied to the page after it loaded.
Copy link
Collaborator

Choose a reason for hiding this comment

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

"...and applied to the page via '<style>' tag injection after the initial load." to elaborate a bit.

@TomTasche
Copy link
Contributor Author

thanks for the feedback, implemented!

@skipjack skipjack merged commit 3941db1 into webpack:master Apr 22, 2017
@skipjack
Copy link
Collaborator

Awesome, great work!

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

Successfully merging this pull request may close these issues.

incomplete css-tutorial?
2 participants