@vituum/vite-plugin-juice
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

npm package node compatility

⚡️🧃 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: {}
    })
  ]
}

Only PostCSS and CSS is supported, you can transform sass or less via juiceLink() function. And process it manually.

<link rel="stylesheet" href="/src/email.less">

Read the docs to learn more about the plugin options.

Requirements

Readme

Keywords

none

Package Sidebar

Install

npm i @vituum/vite-plugin-juice

Weekly Downloads

120

Version

1.4.0

License

none

Unpacked Size

7.74 kB

Total Files

5

Last publish

Collaborators

  • evromalarkey