You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like when I upgraded all of our dependencies and fixed up some breaking changes in #674, I also broke the Preview Template feature. Fortunately this doesn't stop it from rendering properly once you've published your post in the editor, just need to find a way to bring the src/js/cms.js files into our site/static/admin/index.html.
Current Preview
Current Output
Steps to Reproduce
To reproduce this you need to go into the NetlifyCMS (/admin) and see any page or post.
Expected Behavior
We should expect the current output as the current preview, with the same styling and everything we're using.
The text was updated successfully, but these errors were encountered:
I was able to get a fix working on my site -- here are the changes pulled out into a commit cgc@97a313e. They deal with breaking changes in two packages during the version updates in #674:
date-fns - format strings changed in 2.0, the release notes have a table of changes here
html-webpack-plugin - htmlWebpackPlugin.files has a new format that disappointingly discards bundle names between 3.x and 4.x (documented in project readme, search for "htmlWebpackPlugin.files"). The change is a bit annoying because it means you have to assume the order of bundles. Since object property order is based on insertion order (in ES6), as long as that order isn't modified by webpack, the index in my commit is appropriate for the order of bundles in webpack.common.js (empirically, it also works). An issue to reverse this change (so, to once again access bundles by name) has been opened but is stale: Can't get assets by entry point chunk name in v4 jantimon/html-webpack-plugin#1369.
Summary
Looks like when I upgraded all of our dependencies and fixed up some breaking changes in #674, I also broke the Preview Template feature. Fortunately this doesn't stop it from rendering properly once you've published your post in the editor, just need to find a way to bring the
src/js/cms.js
files into oursite/static/admin/index.html
.Steps to Reproduce
To reproduce this you need to go into the NetlifyCMS (
/admin
) and see any page or post.Expected Behavior
We should expect the current output as the current preview, with the same styling and everything we're using.
The text was updated successfully, but these errors were encountered: