Ghost/apps/comments-ui/scripts/load-portal.js
Rishabh cc4eda6478 Added custom build setup
refs https://github.com/TryGhost/Team/issues/1664

- overrides webpack config to generate single script for publishing
- adds custom scripts for dev and production mode
2022-07-04 15:15:01 +02:00

9 lines
257 B
JavaScript

/** Script to load Portal bundle 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');