Add the sections folder back to webpack context#1005
Add the sections folder back to webpack context#1005harshal317 merged 4 commits intoShopify:masterfrom
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. |
|
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... |
t-kelly
left a comment
There was a problem hiding this comment.
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
sectionsfolder 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: