scissors 0.2.2 scissors: ^0.2.2 copied to clipboard
A CSS minifier / tree-shaker for AngularDart 1.x / Angular2.
Current development tree #
...
0.2.2 (2016-01-05) #
Bugfixes #
- Systematically resolve paths from settings (for pngcrush, sassc, etc)
scissors/permutations_transformer
: generate permutation fordefaultLocale
(language in which the messages are written in the source, defaults toen_US
)
0.2.1 (2015-12-14) #
Bugfixes #
- Resolve files with the
.packages
file to prepare for disappearance ofpackages/
. scissors/transformer
: made Sass transformer really lazy.scissors/permutations_transformer
: hard-fail when parts check fails (consume the.dart.js
)scissors/reloader/transformer
: added named argumenttimestampBaseUrl
tosetupReloader
.
0.2.0 (2015-11-19) #
0.1.9 (2015-11-15) #
Features #
- Added new
scissors/reloader/transformer
+ runtime lib that allow instant reload whenever assets are updated (triggered at the end of the pub build). Reloader usage is erased fromrelease
builds by default (respecting source maps). - Don't prune css in debug by default
Bugfixes #
- Sass transformer respects existing
.scss.css
input and only rebuilds them from the.scss
sources when it's out of date (timestamp-based; can be disabled withonlyCompileOutOfDateSass: false
).
0.1.8 (2015-11-14) #
This version comes with a massive refactoring that splits out most features into their own transformer. Please note that there are still only 3 officially-supported transformer entry points:
scissors/transformer
(lazy Sass compilation, CSS and image optimizations)scissors/eager_transformer
(eager version of the previous: builds all the assets upfront when pub serve is run)scissors/permutations_transformer
(lazy locale-specific permutations with optional Closure Compilation to reoptimize the outputs)
Bugfixes #
-
Permutations transformer (
scissors/permutations_transformer
):- Permutations are now built lazily (fixes
pub serve
+ Dartium experience) - Disabled
reoptimizePermutations
by default - Respect
javaPath
when running the Closure Compiler. - Added
expectedPartCounts
check (takes a map of.dart.js
script path to number of expected parts, see example/permutations)
- Permutations are now built lazily (fixes
-
Fixed path resolution regression (dotted package names)
0.1.7 (2015-11-12) #
Bugfixes #
- Fixed image linking (
imageInlining: linkInlinedImages
), with a newpackageRewrites
setting (withfromPattern,toReplacement
syntax; defaults to^package:,packages/
, which works well with pub serve). - Fixed usage of
pngCrushPath
setting.
0.1.6 (2015-11-12) #
Bugfixes #
- Fixed support of wildcard
*
CSS rules.
Features #
- Added support for LTR/RTL-specific parts in
scissors/permutations_transformer
(see example/permutations).
0.1.5 (2015-11-12) #
Bugfixes #
- Fixed base64 format in
inline-image
Features #
-
Added experimental SVG optimization (poor-man heuristics, enabled in release, disable with
optimizeSvg: false
) -
Added experimental PNG optimization relying on
pngcrush
(enabled in release, disable withoptimizePng: false
, provide path topngcrush
withpngCrushPath: path/to/pngcrush
) -
Added
imageInlining
setting to control image inlining inside CSS files, accepts values:inlineAllUrls
: inlinesinline-image
andurl
referencesinlineInlinedImages
: inlinesinline-image
only (default inrelease
mode)linkInlinedImages
: rewritesinline-image
references intourl
references (default indebug
mode): images are not inlined.disablePass
: don't touchinline-image
references (may produce invalid CSS).
-
Added experimental
scissors/permutations_transformer
transformer that generates locale-specific .js artefacts when using defer-loaded messages (package:intl).
0.1.4 (2015-10-30) #
Bugfixes #
- Cleaner path resolution logic (easier to override)
- Stricter regexp in recursive sass imports consumer
0.1.3 (2015-10-28) #
Features #
-
The transformer is now lazy by default, which speeds up startup time of
pub serve
(usescissors/eager_transformer
to force eager transform) -
Sass compilation supports Compass's inline-image helper to inline images.
-
Rebuilds
.css
files when any transitive.sass
import is modified:- Requires
pub serve --force-poll
- The default (lazy) transformer will just invalidate stale resources, while
scissors/eager_transformer
will eagerly rebuild them.
- Requires