Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rspack-contrib/rspack-plugin-cli-copy
- Owner: rspack-contrib
- License: mit
- Created: 2023-12-07T13:05:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-16T03:15:21.000Z (5 months ago)
- Last Synced: 2024-11-11T11:56:08.649Z (2 months ago)
- Language: TypeScript
- Size: 488 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rspack - rspack-plugin-cli-copy
README
rspack-plugin-cli-copy
Start the project and automatically copy the network URL of the terminal
English | [简体中文](./README.zh_CN.md)
![](./instructions/copy.jpg)
## Install
```bash
npm install rspack-plugin-cli-copy -Dpnpm 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)