anywhere-webpack-plugin
v0.1.0
Published
Detect and configure publicPath in run time
Downloads
7
Maintainers
Readme
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.
Usage
require it in your entry file as early as possible
require('anywhere-webpack-plugin');
or, prepend it to your entry file definition
{
entry:[
'anywhere-webpack-plugin',
'entry.js'
]
}
License
MIT