Nocturnal Pumpkin Maelstrom

    @gluons/vue-pack-splitchunks-plugin
    TypeScript icon, indicating that this package has built-in type declarations

    1.20.3 • Public • Published

    vue-pack-splitchunks-plugin

    license npm TSLint lerna Travis (.com) Codacy grade Known Vulnerabilities

    A vue-pack plugin to customize webpack's splitChunks.

    Installation

    Require vue-pack.

    npm install --save-dev @gluons/vue-pack
    # or 
    yarn add --dev @gluons/vue-pack

    Then install this plugin.

    npm install --save-dev @gluons/vue-pack-splitchunks-plugin
    # or 
    yarn add --dev @gluons/vue-pack-splitchunks-plugin

    Usage

    Add this plugin into vue-pack config.

    vue-pack.config.js

    const splitChunks = require('@gluons/vue-pack-splitchunks-plugin');
     
    const options = {
        // For all webpack's config
        tapAll(splitChunks) {
            // Do anything with `splitChunks`
     
            return splitChunks;
        },
     
     
        // For individual webpack's config
        tapCJS(splitChunks) {
            // Do anything with `splitChunks`
     
            return splitChunks;
        },
        tapESM(splitChunks) {
            // Do anything with `splitChunks`
     
            return splitChunks;
        },
        tapSSR(splitChunks) {
            // Do anything with `splitChunks`
     
            return splitChunks;
        }
        tapWeb(splitChunks) {
            // Do anything with `splitChunks`
     
            return splitChunks;
        }
    };
     
    module.exports = {
        plugins: [
            splitChunks(options)
        ]
    };

    Install

    npm i @gluons/vue-pack-splitchunks-plugin

    DownloadsWeekly Downloads

    3

    Version

    1.20.3

    License

    MIT

    Unpacked Size

    8.43 kB

    Total Files

    7

    Last publish

    Collaborators

    • illuminator