Detect and configure publicPath in run time
npm install anywhere-webpack-plugin> A webpack plugin which detects publicPath automatically ( using document.currentScript API ),
> so that you can switch your CDN provider without building again.
> In other words, you can put webpack ouput files anywhere :airplane: you like.
require it in your entry file as early as possible
``js`
require('anywhere-webpack-plugin');
or, prepend it to your entry file definition
`js``
{
entry:[
'anywhere-webpack-plugin',
'entry.js'
]
}
MIT