Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rspack-contrib/rspack-plugin-cli-copy


https://github.com/rspack-contrib/rspack-plugin-cli-copy

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

rspack-plugin-cli-copy


Start the project and automatically copy the network URL of the terminal


NPM version
NPM Downloads

English | [简体中文](./README.zh_CN.md)

![](./instructions/copy.jpg)

## Install

```bash
npm install rspack-plugin-cli-copy -D

pnpm add rspack-plugin-cli-copy -D
```

## Usage

### rspack config

- rspack.config.ts

```js
import { defineConfig } from '@rspack/cli'
import { rspackCliCopyPlugin } from 'rspack-plugin-cli-copy'

export default defineConfig({
plugins: [new rspackCliCopyPlugin()]
})
```

![](./instructions/rspack.png)

### rsbuild config

- rsbuild.config.ts

```ts
import { defineConfig } from '@rsbuild/core'
import { rsbuildCliCopyPlugin } from 'rspack-plugin-cli-copy'

export default defineConfig({
plugins: [rsbuildCliCopyPlugin()]
})
```

![](./instructions/rsbuild.png)