-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
216 additions
and
12 deletions.
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
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
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,51 @@ | ||
type MinifyOptions = { | ||
/** | ||
* Regular expression used to exclude names from processing. | ||
* | ||
* @default /^.js-/ | ||
*/ | ||
filter?: RegExp; | ||
|
||
/** | ||
* The name generator to use for classes and IDs. | ||
* | ||
* Possible values: | ||
* - `'genName'` - generates the smallest possible names | ||
* - `'genNameEmoji'` - generates small emoji based names | ||
* - `'genNameEmojiString'` - generates random emoji with 3 emojis in each | ||
* - `false` - preserves names, use this to ignore ids or classes | ||
* | ||
* @default 'genName' | ||
*/ | ||
genNameClass?: string | boolean; | ||
|
||
/** | ||
* The name generator to use for classes and IDs. | ||
* | ||
* Possible values: | ||
* - `'genName'` - generates the smallest possible names | ||
* - `'genNameEmoji'` - generates small emoji based names | ||
* - `'genNameEmojiString'` - generates random emoji with 3 emojis in each | ||
* - `false` - preserves names, use this to ignore ids or classes | ||
* | ||
* @default 'genName' | ||
*/ | ||
genNameId?: string | boolean; | ||
|
||
/** | ||
* Array of strings containing custom attribute names that will have their values minified. | ||
* | ||
* @default [] | ||
*/ | ||
customAttributes?: string[]; | ||
|
||
/** | ||
* Whether to remove classes, attributes and other identifiers from the HTML | ||
* that are not defined in the CSS. | ||
* | ||
* @default true | ||
*/ | ||
removeUnused?: boolean; | ||
}; | ||
|
||
export type { MinifyOptions }; |
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,51 @@ | ||
type MinifyOptions = { | ||
/** | ||
* Regular expression used to exclude names from processing. | ||
* | ||
* @default /^.js-/ | ||
*/ | ||
filter?: RegExp; | ||
|
||
/** | ||
* The name generator to use for classes and IDs. | ||
* | ||
* Possible values: | ||
* - `'genName'` - generates the smallest possible names | ||
* - `'genNameEmoji'` - generates small emoji based names | ||
* - `'genNameEmojiString'` - generates random emoji with 3 emojis in each | ||
* - `false` - preserves names, use this to ignore ids or classes | ||
* | ||
* @default 'genName' | ||
*/ | ||
genNameClass?: string | boolean; | ||
|
||
/** | ||
* The name generator to use for classes and IDs. | ||
* | ||
* Possible values: | ||
* - `'genName'` - generates the smallest possible names | ||
* - `'genNameEmoji'` - generates small emoji based names | ||
* - `'genNameEmojiString'` - generates random emoji with 3 emojis in each | ||
* - `false` - preserves names, use this to ignore ids or classes | ||
* | ||
* @default 'genName' | ||
*/ | ||
genNameId?: string | boolean; | ||
|
||
/** | ||
* Array of strings containing custom attribute names that will have their values minified. | ||
* | ||
* @default [] | ||
*/ | ||
customAttributes?: string[]; | ||
|
||
/** | ||
* Whether to remove classes, attributes and other identifiers from the HTML | ||
* that are not defined in the CSS. | ||
* | ||
* @default true | ||
*/ | ||
removeUnused?: boolean; | ||
}; | ||
|
||
export type { MinifyOptions }; |
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,51 @@ | ||
type MinifyOptions = { | ||
/** | ||
* Regular expression used to exclude names from processing. | ||
* | ||
* @default /^.js-/ | ||
*/ | ||
filter?: RegExp; | ||
|
||
/** | ||
* The name generator to use for classes and IDs. | ||
* | ||
* Possible values: | ||
* - `'genName'` - generates the smallest possible names | ||
* - `'genNameEmoji'` - generates small emoji based names | ||
* - `'genNameEmojiString'` - generates random emoji with 3 emojis in each | ||
* - `false` - preserves names, use this to ignore ids or classes | ||
* | ||
* @default 'genName' | ||
*/ | ||
genNameClass?: string | boolean; | ||
|
||
/** | ||
* The name generator to use for classes and IDs. | ||
* | ||
* Possible values: | ||
* - `'genName'` - generates the smallest possible names | ||
* - `'genNameEmoji'` - generates small emoji based names | ||
* - `'genNameEmojiString'` - generates random emoji with 3 emojis in each | ||
* - `false` - preserves names, use this to ignore ids or classes | ||
* | ||
* @default 'genName' | ||
*/ | ||
genNameId?: string | boolean; | ||
|
||
/** | ||
* Array of strings containing custom attribute names that will have their values minified. | ||
* | ||
* @default [] | ||
*/ | ||
customAttributes?: string[]; | ||
|
||
/** | ||
* Whether to remove classes, attributes and other identifiers from the HTML | ||
* that are not defined in the CSS. | ||
* | ||
* @default true | ||
*/ | ||
removeUnused?: boolean; | ||
}; | ||
|
||
export type { MinifyOptions }; |
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
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,49 @@ | ||
export type MinifyOptions = { | ||
/** | ||
* Regular expression used to exclude names from processing. | ||
* | ||
* @default /^.js-/ | ||
*/ | ||
filter?: RegExp; | ||
|
||
/** | ||
* The name generator to use for classes and IDs. | ||
* | ||
* Possible values: | ||
* - `'genName'` - generates the smallest possible names | ||
* - `'genNameEmoji'` - generates small emoji based names | ||
* - `'genNameEmojiString'` - generates random emoji with 3 emojis in each | ||
* - `false` - preserves names, use this to ignore ids or classes | ||
* | ||
* @default 'genName' | ||
*/ | ||
genNameClass?: string | boolean; | ||
|
||
/** | ||
* The name generator to use for classes and IDs. | ||
* | ||
* Possible values: | ||
* - `'genName'` - generates the smallest possible names | ||
* - `'genNameEmoji'` - generates small emoji based names | ||
* - `'genNameEmojiString'` - generates random emoji with 3 emojis in each | ||
* - `false` - preserves names, use this to ignore ids or classes | ||
* | ||
* @default 'genName' | ||
*/ | ||
genNameId?: string | boolean; | ||
|
||
/** | ||
* Array of strings containing custom attribute names that will have their values minified. | ||
* | ||
* @default [] | ||
*/ | ||
customAttributes?: string[]; | ||
|
||
/** | ||
* Whether to remove classes, attributes and other identifiers from the HTML | ||
* that are not defined in the CSS. | ||
* | ||
* @default true | ||
*/ | ||
removeUnused?: boolean; | ||
}; |
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