@ice/plugin-css-assets-local
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@ice/plugin-css-assets-local

An ice.js plugin for localize css assets resource.

Install

npm i -D @ice/plugin-css-assets-local

Usage

Add plugin to your ice.config.mts:

import { defineConfig } from '@ice/app';
import cssAssetsLocal from '@ice/plugin-css-assets-local';

export default defineConfig(() => ({
  plugins: [
    cssAssetsLocal(),
  ],
}));

After running npm run build, you can see asset resources will be downloaded to your local disk.

Options

outputPath

The assets resource output path.

  • Type: string
  • Default: "assets"

relativeCssPath

The asset paths relative to the css file path.

  • Type: string
  • Default: "../"

enableInDev

Whether enable the plugin in dev or not.

  • Type: boolean
  • Default: false

Readme

Keywords

none

Package Sidebar

Install

npm i @ice/plugin-css-assets-local

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

5.43 kB

Total Files

6

Last publish

Collaborators

  • linbudu
  • answershuto
  • chenjun1011
  • luhengchang228
  • sobear
  • clarkxia
  • rax-publisher