Skip to main content

Getting Started

AssetBox provides a visualization of the asset based on your front-end repository. It also provides a way to efficiently manage within a project by analyzing redundant management and the assets in use.

Installation

$ pnpm install @assetbox/cli -D

Setup

Create config file

$ pnpm assetbox init

Assume that you have the following folder structures.

  • src
    • assets/icons
      • heart.svg
      • fill-heart.svg
      • ...
    • assets/images
      • background.png
      • background.jpeg
      • ...
    • assets/animations
      • person.json (lottie)
      • ...
    • ...
assetbox.config.cjs
/**
* @type {import('@assetbox/cli').AssetBoxScheme}
*/
const config = {
categories: {
Icons: ["./src/assets/icons/**/*"],
Images: ["./public/images/**/*"],
},
trackingPaths: ["./src/**/*"],
};

module.exports = config;

Usage

$ pnpm assetbox manage
preview