soulteary / webpack-custom-plugin

webpack output dynamics patch plugin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webpack-custom-plugin

useage:

add option to package.json content:

  "customWebpack": {
    "custom-public-path": [
      "this.YOUR_DYNAMIC_ENTRY_POINT && this.YOUR_DYNAMIC_ENTRY_POINT.host || '/'"
    ]
  },

browser script:

window.YOUR_DYNAMIC_ENTRY_POINT = { host: 'https://your-website.com/host/' };

features:

About

webpack output dynamics patch plugin.

License:MIT License


Languages

Language:JavaScript 100.0%