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

Add the possibility of replacing generateCode function #3230

Merged
merged 3 commits into from
May 1, 2020
Merged

Add the possibility of replacing generateCode function #3230

merged 3 commits into from
May 1, 2020

Conversation

qvenge
Copy link
Contributor

@qvenge qvenge commented Apr 8, 2020

Hi! I'm trying to solve some issues in pug-loader, but in order to do that I need to forbid removing all unused mixins during the compilation. Instead of littering the "pug" interface with specific options, I decided that the better solution was allowing developers to override generateCode function. I believe that It might be useful in some other cases as well.

@rollingversions
Copy link

pug (2.0.4 → 2.1.0)

New Features

  • Add support for replacing code gen via a plugin with generateCode

Packages With No Changes

The following packages have no user facing changes, so won't be released:

  • pug-attrs
  • pug-code-gen
  • pug-error
  • pug-filters
  • pug-lexer
  • pug-linker
  • pug-load
  • pug-monorepo
  • pug-parser
  • pug-runtime
  • pug-strip-comments
  • pug-walk

Edit changelogs

@ForbesLindesay ForbesLindesay mentioned this pull request May 24, 2020
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 this pull request may close these issues.

2 participants