npm.io
0.2.0 • Published 6 years ago

webpack-append-files-plugin

Licence
MIT
Version
0.2.0
Deps
2
Size
4 kB
Vulns
0
Weekly
0

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'
        }),
    ]
};