Would be nice if the content of these two would also be “minified” (if selected)
I don’t think, there will be any progress in this…
I already raise this flag, few months ago…
the simplest solution is for you to preprocess the exported file…
a note for this tho…
- there are no tree shaking or uglify solution that are simple enough for this… since most of the time, head content and custom code will definitely polute the globals…
- if you try to delete the whitespace, it’s possible, however I recommend to just delete the indentation, rather than new line ‘\n’… the reason is some of the non editable comment are using “//” intstead of self closing, also inconsistency of closing the line with semicolon “;” ,you can automate it with regex, but definitely not going to be simple solution…
conditionals
- if you just want to publish it to bss hosted site… don’t bother to do any of that, it’s already optimised enough for their hosted site…
- if your goal is to upload the generated/exported pages, then
- Exporting | Bootstrap Studio might help for simple problem
- for more complex problem (code splitting, and edits per element) @html_first/html_scrambler - npm , if you find bugs or just wanted to know how to get around this lib, just send me reply about the problem
Looks like copied text into an paragraph also doesn’t gets “minified” .-/
I don’t understand this? What would minified text look like?
whensomethingisminifiedallthespacesareremoved.Thiswouldmakethetextunreadable.
It’s simple HTML inside an P-tag or inside Custom Code.
Again, I ask, what would minified text look like?
Custom code is custom code (CSS, HTML or JS.) That can be minified. HTML is code. That can be minified.
You can’t minify paragraphs or headings because they’re just text. Take away the spaces and line breaks and the text would be unreadable.
BSS minify html works good. Two of the containers are custom code
have a look
I don’t want to minify pure text, but HTML-formatted text. It should remove the linebreaks after the tags (as usual) but it doesn’t.
Example: Minify.bsdesign
Once i pasted text from an e-mail into an paragraph, second i pasted text into a column (custom code).
Both parts are not minified after export…
Hmmm… I’ll have to look into this.
One thing I can tell you is that the minification (or lack thereof) is extremely trivial in terms of your page load speed, and will have no effect on your page rank or SEO. I generally don’t bother to minify the code on any of my websites and I still score 95 and above on Pagespeed Insights / Lighthouse. Unless you’ve got a MASSIVE amount of code, or are stuck on a 3G or DSL connection, in my opinion, minification in 2024 is really not a necessity.
I know it’s not necessary nowadays, but i just expect that the offered option works like titled (and not just on half of the site).
Also i’m a minimalist