- Documentation, README changes
- Basic CI added.
- Updated dependencies
- Introducing esbuild-inline-sass!
- You can now inline SCSS/SASS with just one plugin!
- by afkvido
- Use the esbuild instance from plugin args instead of global require.
- Make
style
also the default export. - Simplify
onResolve
,onLoad
usage.
- Invalidate the
injectStyle
function when there's nodocument
, for SSR.
- Use
var
instead ofconst
for better compatibility with ES5.
- Fixed import nested css package from nested file.
e.g.inner/lib.js
importssanitize.css/forms.css
(a package)
- No more
clean-css
dependency, it uses the builtin css loader in esbuild now. - Now it exports a function
style({ minify?: boolean, charset?: 'utf8' | 'ascii' })
. - It can show relative path instead of absolute path in un-minified output.
- At most import clean-css once.
- Add clean-css to minify css contents.
- Now it exports a function
style({ cleanCssOptions?: CleanCSS.Options })
.
- Basic support.