cater-assets

0.10.0 • Public • Published

Cater Assets

cater-assets is a Cater Plugin that provides asset processing for the Cater Framework.

This plugin looks in the assets directory of your application for the usual suspects - jpg, png, css and even scss files. They will be compiled and digested as part of the build process.

These files can be used by importing them in your project. For example if you had assets/cat.png, you can use in a component with:

import awesomeCatPicture from "assets/cat.png";
import React from "react";

export default () => <img src={awesomeCatPicture} />;

This component would render the image with your awesome cat picture.

For more information, look at the top-level Cater Documentation.

Dependencies (10)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i cater-assets

    Weekly Downloads

    1

    Version

    0.10.0

    License

    MIT

    Unpacked Size

    13.1 kB

    Total Files

    4

    Last publish

    Collaborators

    • jonathannen