We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
this template:
block header style. body { margin: 0; }
will generate like (2 extra spaces before style):
style
a workaround I've found is to add some selector before body in the template, like:
body
block header style. #some-unused-selector, body { margin: 0; }
The text was updated successfully, but these errors were encountered:
@jeremytowne Thank you for your report.
Sorry, something went wrong.
@jeremytowne Sorry for my late reply. I released a new version(v2.0.0). Please try it.
In your case, you need to set ast true (see below).
ast
plugins: [ new HtmlWebpackPlugin({ template: 'template.pug', filename: 'index.pug' }), new HtmlWebpackPugPlugin({ ast: true }) ]
However, it may not work well because pug-source-gen is not maintained.
pug-source-gen
No branches or pull requests
this template:
will generate like (2 extra spaces before
style
):a workaround I've found is to add some selector before
body
in the template, like:The text was updated successfully, but these errors were encountered: