Comments (5)
Brunch also only supports incremental building while watching. Every invocation of brunch build
is a full rebuild.
from brunch-guide.
Okay, thanks for letting me know!
from brunch-guide.
What about dynamic files watching in watch mode as entry points?
from brunch-guide.
Honestly I'm not totally sure what that even means, but probably not. Brunch is a build system, which is why it's more apt to compare to grunt and gulp. Webpack is first a module loading strategy (compare with browserify) and has grown into a full-blown build system as well, albeit much more opinionated than Brunch at least in terms of module structure with its overloaded require
processing and such. The closest thing Brunch provides to the concept of entry points is the autoRequire
option, but it does not go from there and resolve via your require
statements everything else that needs to be built. You need to specify in the config how you want your source files built and concatenated.
from brunch-guide.
Ah, got, so it isn't really an option I would consider. The Rails Assets Pipeline (sprockets) declares the dependencies on each file much like in most programming languages supporting import/require without returning values, which was great when I started working with web apps because it was an easy way to organize the modules dependencies. Grails takes a different approach, which is more similar to Brunch's approach if I understood it correctly, by specifying the dependencies as configurations, which I find a bit fragile when compared to specifying directly in the files.
Sprockets use some magical comments in the files header to specify the dependencies but the dependencies will have to export directly to window so that they could be used, while it's possible to keep things more isolated with the require mechanism in Webpack.
But the main advantage of Webpack over Sprockets (besides source maps support) is that it's easy to set up which code should be loaded on demand, which is almost impossible to set up with Sprockets in a sane way. From the performance data I have been collecting in the last months the size of the resources is the main reason for the slow initial loading time some users experience (about 10% will take over 5s to load a 1MB minified JS file (~200KB gzipped)).
But thanks for clarifying what is the category of Brunch! This is very helpful!
Cheers!
from brunch-guide.
Related Issues (20)
- [TYPO] CONTRIBUTING line 31 - "you house, your rules" -> "your house, your rules" HOT 3
- How to include CSS from npm modules? HOT 4
- Remarques sur le guide français HOT 5
- Apply #20 change to the French guide
- Missing comparison with Webpack HOT 4
- [Chapter 5] JoinTo specific npm packages only HOT 9
- Dead code elimination HOT 2
- Brunch ?! seems to not work HOT 1
- Add examples of conversion from other build tool(s) HOT 7
- Bower package recognition not working HOT 5
- Jade in Chapter6 HOT 2
- add comments on using ES6 modules with babel HOT 3
- brunch build hangs when brunch-server.js file is present
- Following this guideline, `app.js` isn't created
- Thanx a million ! HOT 1
- Page Not found Error for link to docs page HOT 1
- chapter04-starting-from-scratch.md > Split targets
- Error during node_modules dependency compilation HOT 1
- have to change http://brunch.io/docs/getting-started
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brunch-guide.