0.1.0 • Published 8 years ago

anywhere-webpack-plugin v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

anywhere-webpack-plugin

npm.io npm.io npm.io

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