mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 12:53:13 +03:00
e2294ace22
refs TryGhost/Team#1665 - overrides webpack config to generate single script for publishing - adds custom scripts for dev and production mode
9 lines
257 B
JavaScript
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');
|