npm: possibly marvellous

    require-noop

    0.0.2 • Public • Published

    require-noop

    Inhibits require on selected extensions.

    Useful in isomorphic setups, where - for instance - we want require('asset.png') to use a webpack loader on the client, but result in a noop on the server.

    Installation

    npm install require-noop
    

    Usage

    require('require-noop')({
      extensions: ['.png']
    });

    Install

    npm i require-noop

    DownloadsWeekly Downloads

    6

    Version

    0.0.2

    License

    ISC

    Last publish

    Collaborators

    • marcopiii
    • gabro
    • veej
    • giogonzo
    • tpetrucciani
    • malpenzibo
    • federico.ercoles