-
-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #226 from alundiak/219-pr-suggestion
'Support both csso v1 and v2' - Improved code in handling csso optimization function (justDoIt vs. minify)
- Loading branch information
Showing
2 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
# To cover all possible use case, you should change `optimizeCss` in `example/build.js` from "none" to | ||
# optimizeCss: "standard.keepLines" | ||
# optimizeCss: "standard.keepWhitespace" | ||
# optimizeCss: "standard.keepComments" | ||
# optimizeCss: "standard.keepComments.keepLines" | ||
# optimizeCss: "standard.keepLines.keepWhitespace" - default by r.js | ||
|
||
( | ||
npm install requirejs@2.1.10 -g | ||
|
||
npm install csso@1.3.12 -g | ||
r.js -o example/build.js | ||
|
||
npm install csso@1.4.0 -g | ||
r.js -o example/build.js | ||
|
||
npm install csso@1.8.0 -g | ||
r.js -o example/build.js | ||
|
||
npm install csso@2.0.0 -g | ||
r.js -o example/build.js | ||
|
||
npm install csso@latest -g | ||
r.js -o example/build.js | ||
|
||
# RequireJS@latest | ||
|
||
npm install requirejs@latest -g | ||
|
||
npm install csso@1.3.12 -g | ||
r.js -o example/build.js | ||
|
||
npm install csso@1.4.0 -g | ||
r.js -o example/build.js | ||
|
||
npm install csso@1.8.0 -g | ||
r.js -o example/build.js | ||
|
||
npm install csso@2.0.0 -g | ||
r.js -o example/build.js | ||
|
||
npm install csso@latest -g | ||
r.js -o example/build.js | ||
) > compatibility.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters