browserify-high-priority-extensions

Provide high priority for Browserify extensions option

Usage no npm install needed!

<script type="module">
  import browserifyHighPriorityExtensions from 'https://cdn.skypack.dev/browserify-high-priority-extensions';
</script>

README

browserify-high-priority-extensions

Build Status Coverage Status

When using browserify to bundle up dependencies, extensions option can be used to define extra module filename extension. However, the default module filename extension will always have highest priority (.js, .json), which may not be the choice.

With browserify-high-priority-extension, custom extensions option can have higher priority than the default ones.

Installation

$ npm install browserify-high-priority-extensions

Usage

To provide custom extensions option with higher priority:

var hpe = require('browserify-high-priority-extensions');
hpe.enable();

To reset to the default behaviour:

hpe.disable();

License

(The MIT License)

Copyright (c) 2016 Chuan Shao <shaochuancs@gmail.com>