Let's say you want to try the new fancy ECMAScript thing. Maybe your OCD would be eased by conforming to 66 ESLint rules. It doesn't matter, more than 50 Brunch plugins aim to help with all kinds of crazy cases.
Install Babel plugin by executing npm install --save-dev babel-brunch. Hmm...that's exactly the same command from our previous step. Whatever. Let's create the morning.js file with some content:
Since you've added Babel plugin to the board, Brunch would magically recompile the app and include compiled content of morning.js in the output file. Voila!
Let's say you want to try the new fancy ECMAScript thing. Maybe your OCD would be eased by conforming to 66 ESLint rules. It doesn't matter, more than 50 Brunch plugins aim to help with all kinds of crazy cases.
Install Babel plugin by executing
npm install --save-dev babel-brunch
. Hmm...that's exactly the same command from our previous step. Whatever. Let's create themorning.js
file with some content:Since you've added Babel plugin to the board, Brunch would magically recompile the app and include compiled content of
morning.js
in the output file. Voila!