@midiu/ignore-entry

1.0.0 • Public • Published

Webpack: Ignore Entry Plugin

The webpack configs required entry and output file. But for some tasks, such as: copying files, build sprites... we don't need any entry file to compile.

This plugin created to by pass required webpack entry configs

Installation

npm install --save-dev @midiu/ignore-entry

Usage

Register plugin to your webpack.config.js. For more informations, please have a look inside class IgnoreEntryPlugin

const cwd = process.cwd();
const IgnoreEntryPlugin = require('@midiu/ignore-entry');

module.exports = {
    // your other webpack configs...
    mode: 'none',
    entry: {
        '.webpackignore': 'null'
    },
    plugins: [
        new IgnoreEntryPlugin('.webpackignore')
    ]
}

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i @midiu/ignore-entry

    Weekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    5.75 kB

    Total Files

    7

    Last publish

    Collaborators

    • vinhtrinh