Skip to content
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

First pass at Webpack manifest support for JS/CSS output bundles #6

Merged
merged 2 commits into from
Apr 19, 2020

Conversation

jaredcwhite
Copy link
Member

@jaredcwhite jaredcwhite commented Apr 18, 2020

This PR adds new Liquid tags for use in the HTML head to load the hashed output files from the Webpack bundler. So now you can simply add:

<link rel="stylesheet" href="{% webpack_path css %}" />
<script src="{% webpack_path js %}" defer></script>

And the tag will open the manifest saved in .bridgetown-webpack/manifest.json and locate the proper hashed asset (aka /_bridgetown/static/css/all.1e4140d3a350deac0198.css).

@jaredcwhite jaredcwhite added the enhancement New feature or request label Apr 18, 2020
@jaredcwhite jaredcwhite merged commit a344661 into master Apr 19, 2020
@jaredcwhite jaredcwhite deleted the webpack-manifest branch May 20, 2020 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant