mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 08:31:43 +03:00
47c6509bea
no refs Adds a new `yarn start:dev` command to start portal in development mode that allows development script to be used directly on Ghost site without needing a build for each change. Allows faster development on Portal locally.
12 lines
446 B
JavaScript
12 lines
446 B
JavaScript
/** Script to load live Portal script chunks for local development */
|
|
function loadScript(src) {
|
|
var script = document.createElement('script');
|
|
script.src = src;
|
|
document.head.appendChild(script);
|
|
}
|
|
|
|
loadScript('http://localhost:3000/static/js/bundle.js');
|
|
loadScript('http://localhost:3000/static/js/1.chunk.js');
|
|
loadScript('http://localhost:3000/static/js/0.chunk.js');
|
|
loadScript('http://localhost:3000/static/js/main.chunk.js');
|