@stylable/optimizer
TypeScript icon, indicating that this package has built-in type declarations

6.1.1 • Public • Published

@stylable/optimizer

npm version

Performs optimization when running Stylable in production mode.

StylableOptimizer

Performs optimization such as removing Stylable directives, comments, unused components, empty rules to Stylable's output based on the provided configuration.

The StylableOptimizer is also responsible for invoking the StylableClassNameOptimizer and StylableNamespaceOptimizer based on its configuration.

StylableClassNameOptimizer

Optimizes class names based on usage to a shorter format, being careful not to affect states (which need to stay un-optimized at the moment) and global rules.

StylableNamespaceOptimizer

Optimizes namespaces to a shorter format.

License

Copyright (c) 2019 Wix.com Ltd. All Rights Reserved. Use of this source code is governed by a MIT license.

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @stylable/optimizer

    Homepage

    stylable.io

    Weekly Downloads

    665

    Version

    6.1.1

    License

    MIT

    Unpacked Size

    41 kB

    Total Files

    18

    Last publish

    Collaborators

    • tomrav
    • avi.vahl
    • idoros
    • baraki
    • cijoe
    • alexswix