I have Brunch set up for ease of compiling JS together, but want to also be able to use a node.js module with require.  After trying for a while, I'm stumped.  I want to be able to do something like this:  var myJSfile1 = require('foo');...
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 stick an alert or a console log in the source files and do a build, t...
I want all vendor code to be wrapped in AMD modules. I have defined this section in my config.coffee:  modules:     wrapper: 'amd'     definition: 'amd'   But it seems like brunch uses AMD optimizer only for 'app' folder files...
I am using require.js as part of a brunch project. This code is throwing the error:   ;require.config({ // require.config is not a function paths: {    jquery: "lib/jquery",    underscore: "lib/underscore",    backbone: "lib/backb...
I watched Paul Irish's talk announcing Yeoman (www.yeoman.io), and I'm hooked on the concept of running a continuous build environment. Not content to wait for a Yeoman invite, I tried Grunt and Brunch. Both install easily, and I can get new...
I have made two bundles of javascript from our project- vendor and app. I do this in the manner suggested by the documentation, as seen in this snippet from my brunch-config.js:  files: {   javascripts: {     joinTo: {       'js/vendor.js': /...
I have created Phoenix 1.0.4 (Elixir) application. After I had added some logic in application I wanted to switch my work for front-end part. On page http://www.jonathanbirkholz.com/how-to-use-font-awesome-on-phoenix/ I read that for 3rd assets I sho...
I've been trying to build my web application with Brunch. It depends on a certain npm package (animated-vue), which only contains sources and has been programming using ES2016.   Every time I try to build my project, after adding said package as...
I look at the output of my brunch/babel setup, and wonder if some things couldn't be optimized. Here is the brunch-config.js I will use as support for my questions:  module.exports = {   files: {     javascripts: {       joinTo: {         've...
According to brunch docs AMD format can be configured so that modules are wrapped in AMD:  https://github.com/brunch/brunch/blob/master/docs/config.md#modules  Here is my brunch config:  exports.config = {     paths: {         watched: [...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.