esbuild-plugin-cross-browser-css
v0.0.2
Published
An ESBuild plugin to add cross-browser CSS support
Downloads
3
Maintainers
Readme
ESBuild Cross Browser CSS Plugin
An ESBuild plugin to add supoort for cross-browser CSS support.
Example
Input
div{
display: flex
}
Output
div{
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
Use
Create a file
esbuild.config.js
import esbuild from 'esbuild';
import CrossBrowserCSS from 'esbuild-plugin-cross-browser-css';
esbuild
.build({
entryPoints: ... // Input file
bundle: true,
outfile: ... // Output file
plugins: [CrossBrowserCSS()]
})
.catch(() => process.exit(1));