Nanobots Protecting Microbots

    webpack-plugin-cdn

    1.0.20 • Public • Published

    webpack-plugin-cdn

    Webpack CDN base calls the service and needs to implement the upload logic itself, "Example" provides some support

    Install

    $ npm i webpack-plugin-cdn --save-dev

    Development

    constructor({
        outProgress: function(fileName,localFilePath){}; // Receive the callback method
        publicPath: "http://example.com"; // The address of the common part CDN
        prefixPath: new Date().getTime(); // If you need to add a variable prefix to the CDN
        ignorePath: ".cdnignore"; // ignore custom
    })

    ignore

    If need to use the CDN file exclusion. You need to create a new file ".cdnignore"

    ./.cdnignore

    static/img/*
     

    Exclude the rules:here

    Example

    Questions & Suggestions

    Please open an issue here.

    License

    MIT

    Install

    npm i webpack-plugin-cdn

    DownloadsWeekly Downloads

    2

    Version

    1.0.20

    License

    MIT

    Unpacked Size

    13.2 kB

    Total Files

    4

    Last publish

    Collaborators

    • micahchiu