Skip to content

longtian/anywhere-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ✈️ 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

About

A webpack plugin which detects publicPath automatically

Resources

License

Stars

Watchers

Forks

Packages

No packages published