0.2.0 • Published 4 years ago

webpack-append-files-plugin v0.2.0

Weekly downloads
18
License
MIT
Repository
-
Last release
4 years ago

webpack-append-files-plugin

This plugin is used to append files after webpack's afterEmit hook.

Unlike entry: ['fileA', 'fileB'], it just append files like cat fileA >> fileB without doing any transpile.

Usage

const AppendFilesPlugin = require('webpack-append-files-plugin');
module.exports = {
    // ...
    plugins: [
        // ... 
        new AppendFilesPlugin({
            // files to append
            files: [
                'public/static/libs/jquery.min.js',
                'dist/app.js',
            ],
            // output name
            filename: 'jquery-before-app.[contenthash:8].js'
        }),
    ]
};