Skip to main content

Introduction

caution

This technology is experimental, please report any issues if found.

While ahead-of-time compilation allows performs optimization to reduce runtime work, the goal of CSS extraction is to remove runtime insertion to DOM and produce CSS stylesheets.

When to use it?โ€‹

It's designed to be used only in applications.

How it worksโ€‹

The tool relies on assets transformed by ahead-of-time compilation, its usage is a prerequisite. CSS extraction transforms code to remove generated CSS from JavaScript files and create CSS assets.

Currently, all CSS rules will be extracted to a single CSS file i.e. code splitting for extracted CSS will not work.