Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
v1k45 opened this issue Jun 16, 2022 · 3 comments · Fixed by #765
Closed

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

v1k45 opened this issue Jun 16, 2022 · 3 comments · Fixed by #765

Comments

@v1k45
Copy link

v1k45 commented Jun 16, 2022

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
@cossssmin
Copy link
Member

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 cossssmin changed the title Top level plaintext config does not work in 4.0.0 [DOCS] Top level plaintext config does not work in 4.0.0 Jun 28, 2022
@chris74er
Copy link

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

@cossssmin
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants