mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Refactor/Chore: prepare build infra for further optimization
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
// @ts-check
|
||||
/**
|
||||
* @param {string[]} rules
|
||||
*/
|
||||
exports.minifyRules = (rules) => rules.filter(line => {
|
||||
if (line[0] === '#') {
|
||||
return false;
|
||||
}
|
||||
if (line.trim().length === 0) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
Reference in New Issue
Block a user