framework icon indicating copy to clipboard operation
framework copied to clipboard

[DOCS] Top level `plaintext` config does not work in 4.0.0

Open v1k45 opened this issue 2 years ago • 1 comments

I upgraded from v3 to v4, the top level plaintext: true does not generate plain text templates anymore.

I had to put the plaintext object in build.templates to make it work. The documentation still points to a top-level plaintext config.

Before:

module.exports = {
  plaintext: true,
  build: {
    templates: {
      destination: {
        path: '../backend/templates/maizzle',
      },
    },
  },
  inlineCSS: true,
  removeUnusedCSS: true,
}

After:

module.exports = {
  build: {
    templates: {
      destination: {
        path: '../backend/templates/maizzle',
      },
      plaintext: {
        destination: {
          path: '../backend/templates/maizzle',
        },
      },
    },
  },
  inlineCSS: true,
  removeUnusedCSS: true
}

  • Maizzle Version: 4.0.0
  • Node.js Version: 14.19.3

v1k45 avatar Jun 16 '22 11:06 v1k45

You're right, the docs were wrong - updated them now.

Btw the plaintext: true in Front Matter also doesn't work right now, I'll look into fixing this next week.

cossssmin avatar Jun 17 '22 13:06 cossssmin

I still have the problem with plaintext in Front Matter. Is it already fixed?

chris74er avatar Sep 08 '22 12:09 chris74er

Fixed in 4.2.0:

https://github.com/maizzle/framework/releases/tag/v4.2.0

cossssmin avatar Sep 28 '22 12:09 cossssmin