Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
skip output if underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
thepian committed Mar 16, 2013
1 parent e0cb65e commit 56b69c4
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions lib/refreshing/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ SourceNode.prototype.generateCopy = function() {
SourceNode.prototype.updateConcatJs = function() {

this.parts = [];

if (this.config) {
var libsPath = this.config.libsPath;
var parts = this.name.substring(0,this.name.length-3).split("+");
Expand Down Expand Up @@ -497,13 +498,17 @@ SourceNode.prototype["ext .scss"] = function() {
};

SourceNode.prototype["ext .css"] = function() {
this.update = this.updateCopy;
this.generate = this.generateCopy;
if (! this.underscore) {
this.update = this.updateCopy;
this.generate = this.generateCopy;
}
};

SourceNode.prototype["ext .txt"] = function() {
this.update = this.updateCopy;
this.generate = this.generateCopy;
if (! this.underscore) {
this.update = this.updateCopy;
this.generate = this.generateCopy;
}
};

SourceNode.prototype["ext .js"] = function() {
Expand All @@ -513,7 +518,7 @@ SourceNode.prototype["ext .js"] = function() {
//console.log(this.config, this.parent);
this.update = this.updateConcatJs;
this.generate = this.generateConcatJs;
} else {
} else if (! this.underscore) {
// copy the file
this.update = this.updateCopy;
this.generate = this.generateCopy;
Expand Down

0 comments on commit 56b69c4

Please sign in to comment.