-
Notifications
You must be signed in to change notification settings - Fork 365
Add the sections folder back to webpack context #1005
Add the sections folder back to webpack context #1005
Conversation
I signed the CLA but not quite sure how to re-run it. |
Thanks a lot @dan-gamble, I made some styling changes so it would pass CI. I also got rid of the config import, as the sections path should be what we receive as the to option in the plugin, so figured it be best to just use that. I'll let @t-kelly take a look before publishing. |
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.
👍
Awesome. I figured there would be some changes as I'm not that au fait with the Shopify coding standard. |
Thanks, @dan-gamble! Can this be expected to be merged soon? The current version is very frustrating to develop with until this is fixed... |
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.
Should we be adding the files from this.options.from
instead of this.options.to
?
Sorry for the wait! Ideally we should get this merged today. |
That was a mistake, ended up just adding to the context when we tap the emit hook, and added making sure the sections folder is in the context to the tests. 🎩 locally worked. |
Perfect, thanks all 👍 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What are you trying to accomplish with this PR?
Fix a small issue introduced by #1000.
With the new Slate Sections Plugin introduction, the
sections
folder got removed from Webpack's context. I believe it was previously added there by the CopyWebpackPlugin.This PR adds it back into the context so making changes to the files causes the browser to reload as it used to.
Please provide a link to the associated GitHub issue.
#1004
Checklist
For contributors: