call-after-brunch

A micro-plugin to run some javascript after Brunch's compile, inspired by after-brunch

Usage no npm install needed!

<script type="module">
  import callAfterBrunch from 'https://cdn.skypack.dev/call-after-brunch';
</script>

README

call-after-brunch

An easy way to call some javascript everytime brunch compiles.

Usage

Add "call-after-brunch": "x.y.z" to package.json of your brunch app. Or npm install callafter-brunch --save.

Then in your config.coffee just define the javascript (or coffeescript of course) functon to call in the callAfterBrunch property:

exports.config =
  …
  plugins:
    callAfterBrunch: (generatedFiles) ->
      console.log generatedFiles