postcss-global-nested
Wrap styles into a :global
like postcss-nested does it for usual selectors.
You should use :global
as rare as you can.
usage
test.css:
}
postcss
, postcss-nested
and webpack
Use it with { loader: 'postcss-loader', options: { plugins: [ require('autoprefixer')({ browsers: ['last 2 version'], }), require('postcss-nested')({}), require('postcss-global-nested')({}), ], },}
postcss
and postcss-nested
Use it w/ vanilla ;;; async { const css = await util'test.css' 'utf8'; const result = await ; resultcss // -> ':global(.foo) {} :global(.bar) {}' };