v0.7.0
- Added support for global (unscoped) styles though the new
createGlobalStyle
function. This should only be used when it's not possible to use a .css/.scss file, such as when interpolating JS expressions.import { createGlobalStyle } from '@acab/ecsstatic'; createGlobalStyle` :root { --foo: ${1 + 1}; } `;
- Moved the
scss
function from root into a subpath/scss
and renamed it tocss
. This will result in out-of-the-box support for syntax highlighting without resorting to any renaming hacks,- import { scss as css } from '@acab/ecsstatic'; + import { css } from '@acab/ecsstatic/scss';
- Fixed an issue where styles were left behind in
<head>
after HMR - Bumped deps
Full Changelog: v0.6.1...v0.7.0