get-static-root
v1.0.1
Published
Calculate static root for JavaScript assets at runtime from HTML
Downloads
5
Maintainers
Readme
get-static-root
Calculate static root for JavaScript assets at runtime from HTML.
Usage
var getStaticRoot = require('get-static-root');
// get static root based on script src of bundle.js
var staticRoot = getStaticRoot('bundle.js');