1.0.0 • Published 6 years ago

@midiu/ignore-entry v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

npm.io npm.io npm.io npm.io

npm.io npm.io npm.io

npm.io npm.io npm.io npm.io

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