build-plugin-externals

build-scripts plugin for externals config

Usage no npm install needed!

<script type="module">
  import buildPluginExternals from 'https://cdn.skypack.dev/build-plugin-externals';
</script>

README

build-plugin-externals

Webpack 规范自定义 externals:

{
  "type": "rax",
  "targets": [
    "web"
  ],
  "plugins": [
    [
      "build-plugin-externals", 
      {
        "rax": "rax"
      }
    ]
  ]
}