1.0.3 • Published 3 years ago

remote-script-webpack-plugin v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Remote Script Webpack Plugin

Load remote script like externals.

Difference from externals

Use externals to load script for all page.

Use remoteScriptWebpackPlugin to load script for page when it need the special remote script.

Installation

npm install --save-dev remote-script-webpack-plugin

Usage

// webpack.config.js
const remoteScript = require('remote-script-webpack-plugin')

module.exports = {
  ...
  plugins: [
    remoteScript('lodash', '_', 'https://cdn.jsdelivr.net/npm/lodash'),
    remoteScript('xlsx', 'XLSX', 'https://cdn.jsdelivr.net/npm/xlsx/dist/xlsx.full.min.js'),
  ]
}
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago