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
Add transform function #122
base: master
Are you sure you want to change the base?
Conversation
Unable to get tests to pass. This change now limits tests to comparing HTML files. But would appreciate advice how to fix differences between CI and local. |
9a79376
to
81d44ec
Compare
After further discussion it seems it may be cleaner to deprecate |
README.md
Outdated
|
||
plugins: [ | ||
new StaticSiteGeneratorPlugin({ | ||
locals: ({ path }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably worth adding webpackStats
to this.
9438bb7
to
79eb95c
Compare
This change is an attempt to address the below issue. Depending on any feedback on this issue this change may not be needed.
closes: #121
Transform function
Adds a transform function that allows locals to be transformed into the variables expected by render function.
Transform function runs per render path.
Example usage: