Skip to content

Commit 54efc3a

Browse files
committed
fixed order so token cache isn't reset until after manifest is written
1 parent 908ed38 commit 54efc3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,6 @@ module.exports = function (browserify, options) {
140140

141141
browserify.on('bundle', function(bundle) {
142142
bundle.on('end', function() {
143-
// reset the `tokensByFile` cache
144-
tokensByFile = {};
145-
146143
// Combine the collected sources into a single CSS file
147144
var css = Object.keys(sourceByFile).map(function(file) {
148145
return sourceByFile[file];
@@ -163,6 +160,9 @@ module.exports = function (browserify, options) {
163160
}
164161
});
165162
}
163+
164+
// reset the `tokensByFile` cache
165+
tokensByFile = {};
166166
});
167167
});
168168

0 commit comments

Comments
 (0)