1.2.0 • Published 6 months ago
@vituum/vite-plugin-juice v1.2.0
⚡️🧃 ViteJuice
Inlines CSS code to HTML via Juice. It's handy for creating email templates.
import juice from '@vituum/vite-plugin-juice'
export default {
plugins: [
juice({
paths: [],
tables: true,
postcss: {},
doctype: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
options: {},
juiceLink: async href => href
})
]
}
Only PostCSS and CSS is supported, you can transform sass or less via juiceLink()
function. And process it manually.
- Sass - https://sass-lang.com/documentation/js-api/
- Less - https://lesscss.org/usage/#programmatic-usage
<link rel="stylesheet" data-href="/src/email.less" data-juice-link>
Read the docs to learn more about the plugin options.
Requirements
1.2.0
6 months ago
1.1.0
10 months ago
1.0.0
11 months ago
1.0.0-beta.1
11 months ago
1.0.0-alpha.2
11 months ago
1.0.0-alpha.1
11 months ago
0.1.8
1 year ago
0.1.7
1 year ago
0.1.6
1 year ago
0.1.5
1 year ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago