Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #43 - Generates full markup at build time, while retaining any needed JS dynamics on the browser side.
Now using webpack to serve locally
hugo
serves the file structure to a temporary directory;webpack
to append the react output;webpack
is done (Cleaner console when serving locally #24);webpack
is also the local server used as well, when you runyarn start
; used to behugo
doing that, so one more step towards completehugo
abstraction;webpack
server doesn't add the trailing slash correctly in the admin path and so Netlify CMS fails to load:http://localhost:1313/admin becomes http://localhost:1313/admin#/temporary solution is to always type the forward slash;doesn't affect live builds on Netlify of course, which redirect to the trailing slash correctly, it's only a local issue.App entry point
jsx
tocomponents
to be more in-line with common development procedure;app.min.js
file, called in the browser, is nowcomponents/App.jsx
, which must be modified to list and initialize every individual component per project/site.New BesugoComponent properties and methods
(They're all better documented in the code.)
.view()
, that returns either thewindow
object or CMS's iframe, depending on where it is being rendered, for easier abstraction during any implementation work;.config
is an object that defines the component within the website context, see inline comments on what properties it expects;.extraProps()
called before building a component, to fetch any information necessary not found in props; use to append directly to props;.buildContainer()
what form should the component's container take; by default this returns a simple div. Useful when you're building lists and want to wrapli
s in aul
for instance.