cssnano
eleventy 🕚⚡️
Our great sponsors
cssnano | eleventy 🕚⚡️ | |
---|---|---|
15 | 244 | |
4,622 | 16,170 | |
0.6% | 1.6% | |
8.8 | 9.0 | |
4 days ago | 6 days ago | |
CSS | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cssnano
-
Beyond the Basics: Exploring TailwindCSS and Linaria in Next.js - From Installation to Performance Optimization
Since Tailwind is a PostCSS plugin, we can also add cssnano plugin to compress the bundle.
-
Maximize Web Performance with CSS Optimization Techniques
Minifying your CSS involves removing unnecessary whitespace, comments, and reducing property names. This results in smaller file sizes and faster downloads. Use tools like UglifyCSS and CSSNano for this purpose.
-
Classic Themes with Block Patterns in WordPress
For the sake of simplicity, my example setup uses a single-file plugin and puts all styles directly into a single style.css file without using further theme.css or theme.json files, which we might want to use depending on the requirements for customizability. Likewise, SASS / SCSS support can be added if it makes life easier for the developer(s) involved. But as we already use PostCSS to control autoprefixing and cssnano minification, we can also use it to support the latest and even upcoming CSS sytax like native CSS nesting.
-
How to auto-prefix and minify CSS?
The cssnano plugin can minify/compress CSS and make it suitable for production use. Install cssnano plugin using this command:
-
Thanks to Sveltekit, this site - with a lot of images - scores high on Lighthouse.
CSS minification by cssnano
-
Styling Remix using Tailwind and PostCSS
cssnano
-
How to integrate postcss and webpack
cssnano is used to ensure that the final result is as small as possible for a production environment.
- Buenas practicas en CSS
-
Source Maps
There are plenty of free plugins are available to optimize styles, scripts and create source maps for them. Optimize styles Optimize Scripts Create Sourcemaps
-
The Ultimate Eleventy Template for your blog with a FREE minimalist theme [Open Source]
☕ Minify HTML & CSS with HTMLMinifier and cssnano
eleventy 🕚⚡️
-
Converting BlogCFC blog to Eleventy
This post outlines the steps for migrating an existing BlogCFC blog to a JamStack, with a focus on using Eleventy.
-
Ask HN: What's the simplest static website generator?
I suggest you to try out eleventhy (https://www.11ty.dev/)
Quite simple to start, and a nice system to add some scripting and styles without the requirement of bringing in a framework.
-
Eleventy - Create a global production flag
A production flag enables you to run activities in dev or production such as minifying assets, showing draft posts, etc. There isn't a built-in flag or function that comes with eleventy (11ty) specifically for this. However we have this info at our fingertips.
-
Ask HN: Looking for lightweight personal blogging platform
I can't recommend Eleventy enough!
https://www.11ty.dev
I converted my WordPress blog to Eleventy 4 years ago and never looked back, it's been delightful!
https://www.joshcanhelp.com/taking-wordpress-to-eleventy/
-
Removing React is just weakness leaving your codebase
It’s 2024, and you are about to start a new project. Do you reach for React, a framework you know and love or do you look at one of the other hot new frameworks like Astro, Enhance, 11ty, SvelteKit or gasp, plain vanilla Web Components?
-
VS Code - Fix a task automation issue - `The terminal process failed to launch (exit code: 127`
The "dev" script is running the eleventy server in dev mode. The details of the script are not important for this discussion, but to round out the background here is an abbreviated version of my package.json:
-
Eleventy vs. Next.js for static site generation
Eleventy is a fast and powerful SSG that really shines when it comes to pure static site generation because it does not require the loading of a client-side JavaScript bundle in order to serve content.
-
You don't need JavaScript for that
The irony is using a JavaScript-based static site generator to make the site: https://www.11ty.dev
-
Why You Should Write Your Own Static Site Generator
https://doublejosh.com/post/186193119278/metalsmithjs-is-sti...
Then two years ago I needed a more robust SSR system based on React, so I went with GatsbyJS. It's insanely mature and intuitive, but as we all know that community and business is now drying up too. But the framework is still great.
Now everyone sings the praises of NextJS, which can be used for SSR but is intended for applications and active server endpoints. But more complexity doesn't mean better.
I'm keen to try other simple frameworks when the result is a static site. I may give https://www.11ty.dev a shot.
-
From Jason: my custom digital garden in 11ty
11ty is a lightweight static site generator. I chopped up my HTML and used the 11ty starter template called eleventy-base-blog as the structural foundation for the site.
What are some alternatives?
purgecss - Remove unused CSS
astro - The web framework for content-driven websites. ⭐️ Star to support our work!
Tailwind CSS - A utility-first CSS framework for rapid UI development.
Hugo - The world’s fastest framework for building websites.
PostCSS - Transforming styles with JS plugins
SvelteKit - web development, streamlined
twind - The smallest, fastest, most feature complete Tailwind-in-JS solution in existence.
Gatsby - The best React-based framework with performance, scalability and security built in.
Sass - Sass makes CSS fun!
Publii - The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
css-loader - CSS Loader
Grav - Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony