1.3.0 • Published 11 months ago

@vituum/vite-plugin-juice v1.3.0

Weekly downloads
-
License
-
Repository
github
Last release
11 months ago

⚡️🧃 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.

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

Read the docs to learn more about the plugin options.

Requirements

1.3.0

11 months ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

1.0.0-beta.1

2 years ago

1.0.0-alpha.2

2 years ago

1.0.0-alpha.1

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago