Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Bug 734205 (cssfreejsm): Use createCssIgnoreFilter
Browse files Browse the repository at this point in the history
- Rename createIgnoreFilter to createCssIgnoreFilter because it's just
  about CSS
- Use it when building gclichrome.jsm
  • Loading branch information
joewalker committed Mar 8, 2012
1 parent 2ead070 commit 6269b99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/server/build.js
Expand Up @@ -135,7 +135,7 @@ exports.buildFirefox = function(destDir) {
{ project: project, require: [ 'gcli/index' ] },
'mozilla/build/suffix-gcli.jsm'
],
filter: [ createIgnoreFilter(), copy.filter.moduleDefines ],
filter: [ createCssIgnoreFilter(), copy.filter.moduleDefines ],
dest: (destDir ? destDir + jsmDir : 'built/ff') + '/gcli.jsm'
});

Expand All @@ -152,7 +152,7 @@ exports.buildFirefox = function(destDir) {
}),
'mozilla/build/suffix-gclichrome.jsm'
],
filter: copy.filter.moduleDefines,
filter: [ createCssIgnoreFilter(), copy.filter.moduleDefines ],
dest: (destDir ? destDir + jsmDir : 'built/ff') + '/gclichrome.jsm'
});

Expand Down Expand Up @@ -191,7 +191,7 @@ exports.buildFirefox = function(destDir) {
* Sometimes we want to exclude CSS modules from the output.
* This replaces the contents of any file named '*.css' with an empty string.
*/
function createIgnoreFilter() {
function createCssIgnoreFilter() {
var filter = function(data, location) {
return location != null && /\.css$/.test(location.path) ? '' : data;
};
Expand Down

0 comments on commit 6269b99

Please sign in to comment.