Skip to content

Releases: ereminnf/nunjucks-static

Release v4.0.0+

10 Sep 19:02
a270475
Compare
Choose a tag to compare
  • add typescript/compile
  • update src folder structure
  • rename package
  • update html-webpack-plugin
  • rename main page

Release v3.1

11 Dec 15:29
Compare
Choose a tag to compare
  • Added generation of child pages.

Release v3.0.1

03 Dec 05:49
Compare
Choose a tag to compare
  • fix html option Immutable.

Update 3.0

12 Jul 18:59
Compare
Choose a tag to compare
  • 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

04 Mar 06:52
Compare
Choose a tag to compare
Update v2.0 Pre-release
Pre-release
2.0.0

Update v1.0.5-v1.0.9

16 Dec 17:46
Compare
Choose a tag to compare
  • fix option html-webpack-plugin in generateNunjucksHtml
  • add chunks for entry point

Update v1.0.0-v1.0.4

27 Sep 18:40
Compare
Choose a tag to compare

add utils:

  • generate nunjucks template to html
  • generate blob folder list

add test filters:

  • shorten

Update v0.2.0

26 Aug 09:24
c217637
Compare
Choose a tag to compare
  • Updated loader-utils
  • Added the ability to add filters
  • Data for sending variables to the template