v1.1.0
v1.1.0
This new release will dramatically increase your producitvity with faster startup and rebuild times!
Feature: webpack stats
A new command-line flag has been added (tarec build --stats
).
This will generate a webpack-stats.json
file, which you can use to understand your build size on webpack-analyzer
Feature: Add support for websockets in proxies
See #4
Feature: Happypack
Happypack will build your css and js file by file in parallel, which can decrease your build time in development.
By default, happypack is disabled. You can enable it with a command-line flag (tarec start --happy
) or configure it in your tarec.yml
file:
happypack:
enabled: true # default = false
cache: true # default = true
cpus: 4 # default = os.cpus().length
Feature: DLLs
When you start your application in development mode, webpack will go through every asset and library to resolve the imports you wrote.
While your code changes on a regular basis, your dependencies do not.
It is thus wasteful to re-link them on every build.
DLLs solve that problem by allowing you to pre-bundle all your dependencies in a single js file. A manifest file will also be generated so webpack knows how to wire those dependencies to your code.
Every time your dependencies change, run tarec dll
to regenerate your project's dlls.
They will be put in the .tarec/dll
folder, at the root of your project.
When tarec starts (tarec start
), it will look in this directory and automatically pick up those dlls.
Webpack will therefore only compile your own code.
On projects with lots of dependencies, this call yield a very significant performance boost on both startup and rebuild time.
DLLs are only used in development mode.