Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@11ty/eleventy-assets

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@11ty/eleventy-assets

Manage per-route code (CSS, SVG, JS) in Eleventy.

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Eleventy Assets

⚠️ Work in progress!!

Code to help manage assets in your Eleventy project. This is not an addPlugin compatible Eleventy plugin. It is an npm package for use in your config or other plugins.

Currently supported features:

  • Generate and inline code-split CSS specific to individual pages.
  • Can work as a standalone implementation (check out the ./sample/ directory) or in tandem with eleventy-plugin-vue.

Installation

npm install @11ty/eleventy-assets

Usage

See the ./sample/ directory for an example implementation.

  • A usingComponent shortcode to log component use in each template.
  • A getCSS filter for use in layout templates to output the code-split CSS for the current URL (only).
  • Component CSS is stored in ./sample/css/

Keywords

FAQs

Package last updated on 22 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc