question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Minified templates are not a good basis for customization

See original GitHub issue

What’s the recommended path for customizing base.html, main.html, and the partials?

Prior to 4.3.0, I would grab any file I needed to customize from the material/ directory and include it in my build. Now, however, those are minimized. While that does save in bandwidth, it also makes them a challenge to work with when customizing. (Perhaps I’m missing the obvious, but I’m not finding any cli tools that will pretty-print a jinja2 template.)

Using the files in src works for many. However, at least base.html has some templating that causes it to differ from the final output file. Assuming you don’t have in interest in reverting the behavior to what it was prior to 4.3.0, would it be possible to have non-minimized html files output to an additional/alternate directory?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
squidfunkcommented, Jun 20, 2019

@wilhelmer - thanks, I just removed minify_js from the docs in 13c8ad337000a4d0dc4926acff04637c5e8692b5.

0reactions
wilhelmercommented, Jun 17, 2019

@squidfunk Co-author of the plugin here. Setting minify_js to true doesn’t do anything unless you specify the files to be minified under js_files. So I suggest that you either remove the minify_js entry in the documentation or specify some template files that should be minified.

Currently, the documentation gives the impression that the plugin will automatically minify all your JS files, which it doesn’t.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting started · Bootstrap - Comedy Series
An overview of Bootstrap, how to download and use, basic templates and examples, and more. ... Compiled and minified CSS, JavaScript, and fonts....
Read more >
Customization - Material for MkDocs - GitHub Pages
Project documentation is as diverse as the projects themselves and Material for MkDocs is a great starting point for making it look beautiful....
Read more >
HTML + HubL Templates - HubSpot Developers
HubSpot CMS templates are written in HTML and HubL. These templates are capable of containing regions that are friendly for content creators ...
Read more >
Bundling and Minification | Microsoft Learn
Bundling and minification are two techniques you can use in ASP.NET 4.5 to improve request load time. Bundling and minification improves ...
Read more >
Pages not cached, or Minify CSS/JS not working - WP Rocket
Note that an htaccess file is not required for caching and file optimizations to work. But it is used to apply other best...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found