Return script tags from a list of asset paths.
function layout(state) {
return '<h1>Hello!</h1>' + state.script(['/bundle.js'])
}
With this bundle configuration:
bundle: { js: ['/js/browser.js', '/js/app.js'] }
Development mode expands /bundle.js into the individual files. Production uses /bundle.js. Files keep their configured order.
Next: Bust →