Skip to content Skip to sidebar Skip to footer

Js Compiled By Brunch Does Not Run

I wanted to try out Brunch and am having some trouble getting my compiled JS files to execute in the browser. The file gets compiled and loaded by the page into the browser. If I

Solution 1:

are you requiring the build in your html?

see below:

<scriptsrc="app.js"></script><script>require('initialize')</script>

by default brunch.io registers everything into commonjs modules. It then registers a "initialize" module to bootstrap the app and start everything.

Post a Comment for "Js Compiled By Brunch Does Not Run"