Added support for the template function in JS runtime on the client-side in the browser.
For example:
import personTmpl from './partials/person.ejs';
// render template function with variables in browser
document.getElementById('person').innerHTML = personTmpl({ name: 'Walter White', age: 50});
The template function works with preprocessors: ejs, handlebars, nunjucks. Note: The eta (default preprocessor) doesn't support the template function in JS on the client-side, use the ejs instead.
Added CSS extraction from styles used in *.vue files.
For example, MyComponent.vue:
\<template>
...
</template>
<script setup>
...
</script>
<!-- CSS will be extracted from the SCSS file into a separate *.css file -->
<style src="./style.scss" lang="scss"></style>
<!-- CSS will be extracted from the style tag into a separate *.css file -->
<style>
h1 {
color: red;
}
</style>
Bug fixes
FIxed access to @root variables in Handlebars partial helper inside the each block.
v3.0.3
Bug fixes
Fixed installation error 'Invalid tag name of the favicons package' (introduced in v3.0.0).
Added the missing plugins directory to package.
v3.0.1
🔆 What's New in v3
Added Hooks & Callbacks. Now you can create own plugin to extend this plugin.
feat: add support for the template function on the client-side for ejs
docs: update readme
test: add tests for compile mode
3.3.0 (2023-11-29)
feat: add support for the template function on the client-side for eta
3.2.0 (2023-11-28)
feat: add Twig preprocessor. Now you can use "best of the best" template engine. Enjoy ;-)
3.1.3 (2023-11-24)
fix: fatal error when using the handlebars preprocessor (introduced in v3.1.2)
fix: access @root variables in hbs partial helper inside the each block
3.1.2 (2023-11-24) DEPRECATED: the critical bug by using the handlebars preprocessor is fixed in the v3.1.3
fix: access @root variables in hbs partial helper inside the each block
3.1.1 (2023-11-23)
fix: define js.test field in types.d.ts as optional
3.1.0 (2023-11-22)
feat: add support for the template function in JS runtime on the client-side.
For example:
import personTmpl from './partials/person.ejs';
// render template function with variables in browser
document.getElementById('person').innerHTML = personTmpl({ name: 'Walter White', age: 50});
Template function works with preprocessors: ejs, handlebars, nunjucks. Note: The eta (default preprocessor) doesn't support template function in JS on the client-side, use the ejs instead.
feat: add CSS extraction from styles used in *.vue files.
For example, MyComponent.vue:
\<template>
...
</template>
<script setup>
...
</script>
<!-- CSS will be extracted from the SCSS file into a separate *.css file -->
<style src="./style.scss" lang="scss"></style>
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps html-bundler-webpack-plugin from 2.15.2 to 3.4.0.
Release notes
Sourced from html-bundler-webpack-plugin's releases.
... (truncated)
Changelog
Sourced from html-bundler-webpack-plugin's changelog.
... (truncated)
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show