Commit Graph

13 Commits

Author SHA1 Message Date
Slava Kim
6ab8afdcdd Disable inputSourcemap option in CSS minifier
When input files reference sourcemaps in their body with a comment, it
is most likely not to be useful or correct.

The files incoming from Isobuild have sourcemaps metadata on in-memory objects.
2015-07-28 15:59:11 -07:00
Slava Kim
65a04ede0f Rename Minifier interface -> processFilesForBundle
processFilesForTarget -> processFilesForBundle

Since the minifiers work on the output of compilers and linkers, there
is no a good definition of a "target" there. "Bundle" is a general term
that we use to describe the whole compiled app with all the packages.
2015-07-17 14:57:34 -07:00
David Glasser
504649d17f improve standard-minifier mergeCss errors 2015-07-13 16:14:22 -07:00
Slava Kim
8900a8abfd WIP fixing minifiers 2015-07-13 15:59:13 -07:00
David Glasser
7cbdebf847 Fix minify option in cordova and old bundler tests
Rename 'mode' and 'minify' to 'minifyMode' consistently (including in
minifier plugin API).

Make minifyMode default to 'development' (fixes some other old bundler
tests).

This doesn't make bundler-assets pass but it gets farther along.
2015-07-13 13:45:22 -07:00
Slava Kim
cecbc51639 Put global imports for linters and minfier mode for minifiers into options 2015-06-27 11:32:46 -07:00
Slava Kim
9cabba87c3 Use getPathInBundle rather than getPathInPackage in minifiers 2015-06-27 02:27:46 -07:00
Slava Kim
86968f9a2b Fix minifier crash when no files are available 2015-06-26 17:35:33 -07:00
Slava Kim
d06fe17e25 Give minifiers an option to set the output path for files
Also makes linked js urls better in devel mode
2015-06-26 17:31:28 -07:00
Slava Kim
fed3a5ec48 Create two modes for minifiers: production and development
Also, extract the CssMerge part into minification
2015-06-26 17:08:14 -07:00
Slava Kim
7c729b90a4 Minify CSS and split it into several stylesheets when the rules count exceeds the IE limit
Fixes #1876
2015-06-15 14:09:29 -07:00
Slava Kim
4badf8ed31 Put the concatenation part of minification to minifier plugins 2015-06-15 11:36:52 -07:00
Slava Kim
534980e3f4 Implement standard-minifiers and the Minifier build plugin API 2015-06-11 15:32:08 -07:00