| Copyright | (c) 2017 Cristian Adrián Ontivero |
|---|---|
| License | BSD3 |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Hasmin.Config
Description
Synopsis
- data Config = Config {
- colorSettings :: ColorSettings
- dimensionSettings :: DimensionSettings
- gradientSettings :: GradientSettings
- shouldUsePropertyTraits :: Bool
- shouldCleanRules :: Bool
- shouldMinifyTimingFunctions :: Bool
- shouldMinifyFilterFunctions :: Bool
- shouldRemoveQuotes :: Bool
- fontweightSettings :: FontWeightSettings
- shouldMinifyTransformOrigin :: Bool
- shouldMinifyMicrosyntax :: Bool
- shouldMinifyKeyframeSelectors :: Bool
- shouldMinifyTransformFunction :: Bool
- shouldConvertEscaped :: Bool
- shouldConvertNullPercentages :: Bool
- shouldRemoveEmptyBlocks :: Bool
- shouldRemoveDuplicateSelectors :: Bool
- shouldNormalizeQuotes :: Bool
- letterCase :: LetterCase
- selectorSorting :: SortingMethod
- declarationSorting :: SortingMethod
- rulesMergeSettings :: RulesMergeSettings
- data ColorSettings
- data DimensionSettings
- data GradientSettings
- data FontWeightSettings
- data LetterCase
- data SortingMethod
- defaultConfig :: Config
- data RulesMergeSettings
Documentation
The configuration used for minifying.
Constructors
data ColorSettings Source #
Constructors
| ColorMinOff | |
| ColorMinOn |
Instances
| Eq ColorSettings Source # | |
Defined in Hasmin.Config Methods (==) :: ColorSettings -> ColorSettings -> Bool # (/=) :: ColorSettings -> ColorSettings -> Bool # | |
| Show ColorSettings Source # | |
Defined in Hasmin.Config Methods showsPrec :: Int -> ColorSettings -> ShowS # show :: ColorSettings -> String # showList :: [ColorSettings] -> ShowS # | |
data DimensionSettings Source #
Instances
| Eq DimensionSettings Source # | |
Defined in Hasmin.Config Methods (==) :: DimensionSettings -> DimensionSettings -> Bool # (/=) :: DimensionSettings -> DimensionSettings -> Bool # | |
| Show DimensionSettings Source # | |
Defined in Hasmin.Config Methods showsPrec :: Int -> DimensionSettings -> ShowS # show :: DimensionSettings -> String # showList :: [DimensionSettings] -> ShowS # | |
data GradientSettings Source #
Constructors
| GradientMinOff | |
| GradientMinOn |
Instances
| Eq GradientSettings Source # | |
Defined in Hasmin.Config Methods (==) :: GradientSettings -> GradientSettings -> Bool # (/=) :: GradientSettings -> GradientSettings -> Bool # | |
| Show GradientSettings Source # | |
Defined in Hasmin.Config Methods showsPrec :: Int -> GradientSettings -> ShowS # show :: GradientSettings -> String # showList :: [GradientSettings] -> ShowS # | |
data FontWeightSettings Source #
Constructors
| FontWeightMinOff | |
| FontWeightMinOn |
Instances
| Eq FontWeightSettings Source # | |
Defined in Hasmin.Config Methods (==) :: FontWeightSettings -> FontWeightSettings -> Bool # (/=) :: FontWeightSettings -> FontWeightSettings -> Bool # | |
| Show FontWeightSettings Source # | |
Defined in Hasmin.Config Methods showsPrec :: Int -> FontWeightSettings -> ShowS # show :: FontWeightSettings -> String # showList :: [FontWeightSettings] -> ShowS # | |
data LetterCase Source #
Constructors
| Original | Leave letter casing as is. |
| Lowercase | Lowercase whatever possible to improve gzip compression. |
Instances
| Eq LetterCase Source # | |
Defined in Hasmin.Config | |
| Show LetterCase Source # | |
Defined in Hasmin.Config Methods showsPrec :: Int -> LetterCase -> ShowS # show :: LetterCase -> String # showList :: [LetterCase] -> ShowS # | |
data SortingMethod Source #
Constructors
| NoSorting | |
| Lexicographical |
Instances
| Eq SortingMethod Source # | |
Defined in Hasmin.Config Methods (==) :: SortingMethod -> SortingMethod -> Bool # (/=) :: SortingMethod -> SortingMethod -> Bool # | |
| Show SortingMethod Source # | |
Defined in Hasmin.Config Methods showsPrec :: Int -> SortingMethod -> ShowS # show :: SortingMethod -> String # showList :: [SortingMethod] -> ShowS # | |
defaultConfig :: Config Source #
A default config with most settings enabled. Used by the minify function, mainly for testing purposes.
data RulesMergeSettings Source #
Constructors
| MergeRulesOn | |
| MergeRulesOff |
Instances
| Eq RulesMergeSettings Source # | |
Defined in Hasmin.Config Methods (==) :: RulesMergeSettings -> RulesMergeSettings -> Bool # (/=) :: RulesMergeSettings -> RulesMergeSettings -> Bool # | |
| Show RulesMergeSettings Source # | |
Defined in Hasmin.Config Methods showsPrec :: Int -> RulesMergeSettings -> ShowS # show :: RulesMergeSettings -> String # showList :: [RulesMergeSettings] -> ShowS # | |