Releases: ereminnf/nunjucks-static
Releases · ereminnf/nunjucks-static
Release v4.0.0+
Release v3.1
- Added generation of child pages.
Release v3.0.1
- fix html option Immutable.
Update 3.0
- The bundles variable:
for css
{% for name, item in bundles.css %}
<link rel="stylesheet" href="{{ item }}">
{% endfor %}
or
<link rel="stylesheet" href="{{ bundles.css['entry_point_name'] }}">
for js
{% for name, item in bundles.js %}
<script src="{{ item }}"></script>
{% endfor %}
or
<script src="{{ bundles.js['entry_point_name'] }}"></script>
- adding variables, filters and parameters using htmlPlugin function
plugins: [
...htmlPlugin({
pagesPath: paths.pages,
templatePath: paths.templates,
outputPath: paths.output,
data: {
foo: 'bar',
title: 'site-title'
},
filters: {
shorten: function (value, count) {
return value.slice(0, count || 5);
}
}
}, {
// ...HTML Webpack Plugin options
minify: false,
inject: false,
chunks: {
index: [
'firstEntry',
'secondEntry'
],
about: [
'firstEntry'
]
}
}, {
// ...nunjucks options
})
]
- added example app, to run:
run npm i && npm run (start or build)
Update v2.0
2.0.0
Update v1.0.5-v1.0.9
- fix option html-webpack-plugin in generateNunjucksHtml
- add chunks for entry point
Update v1.0.0-v1.0.4
add utils:
- generate nunjucks template to html
- generate blob folder list
add test filters:
- shorten
Update v0.2.0
- Updated loader-utils
- Added the ability to add filters
- Data for sending variables to the template