1.3.2 • Published 6 years ago

steal-css v1.3.2

Weekly downloads
544
License
MIT
Repository
github
Last release
6 years ago

Build Status npm version

steal-css

API

{Object}

steal-css is a plugin for Steal that helps with loading CSS.

Object

  • CSSModule {CSSModule(address, source)}: The CSSModule property is a constructor function that facilitates most of what steal-css provides. End users never need to use this functionality, it is provided for plugin authors that seek to extend steal-css' core behavior.

cssOptions {Object}

Specifies configuration options that will be applied to steal-css.

Object

  • timeout {Integer}: This specifies the time (in seconds) steal will try to load a css file, within a javascript module (e.g. require('./mycssfile.css'), in production mode.

    steal.config({
        cssOptions: {
            timeout: 15
        }
    });

    If no timeout is provided, the default value will be 60 seconds. Note:

    No javascript code will be execute until the CSS file is loaded. If the timeout is reached or loading the file will fail, StealJS terminates execution. The benefit of this behavior, you don't get unstyled content in production mode. For example, if you are using steal-tools.guides.progressive_loading.

License

MIT

1.3.2

6 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.3.0-pre.0

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

1.0.0-rc.0

7 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago