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
inside this file is this:
it makes use of InboxSDK.js
it adds functionality to various parts of Gmail web UI and accepts React nicely for UI building
I added it to webpack config and it gets copied over where it needs to be
import React from 'react';
import ReactDOM from 'react-dom';
const TestFeature = () => <div>boo hoo</div>; //editing these components does not trigger a reload
const Sidebar = () => <div>Boo hoo hoo</div>;
InboxSDK.load(2, 'app-id').then((sdk) => {
//Add Compose new window bottom toolbar
sdk.Compose.registerComposeViewHandler((composeView) => {
composeView.addButton({
title: "Test Feature",
iconUrl: chrome.runtime.getURL('images/template-list-256x256.svg'),
hasDropdown: true,
onClick: (event) => {
ReactDOM.render(<TestFeature />, event.dropdown.el);
}
});
});
//Sidebar
let el = document.createElement('div')
ReactDOM.render(<Sidebar />, el)
const panelView = sdk.Global.addSidebarContentPanel({
title: 'Sidebar test',
iconUrl: 'sidebarlogo.png',
el: el
})
//Auto Open sidebar
//Mainly handle for development
panelView.then(function (panel) {
panel.open()
});
});
Everything loads up and works except no magic reload for indexScript
When I save indexScript the webserver recompiles build updates but I need to refresh extension page setting and then reload browser
Any insight much appreciated
The text was updated successfully, but these errors were encountered:
hellofantastic
changed the title
reload newly added entry point
hot reload newly added entry point
Jun 27, 2020
Let me say pretty marvellous repo, I've learned a bit about webpack.
I decided to add another entry point in the webpack.config
inside this file is this:
it makes use of InboxSDK.js
it adds functionality to various parts of Gmail web UI and accepts React nicely for UI building
I added it to webpack config and it gets copied over where it needs to be
Everything loads up and works except no magic reload for indexScript
When I save indexScript the webserver recompiles build updates but I need to refresh extension page setting and then reload browser
Any insight much appreciated
The text was updated successfully, but these errors were encountered: