# entrypoints-output-webpack-plugin

> 构建后输出 output 文件配置

Latest version **0.0.1** (published 2020-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install entrypoints-output-webpack-plugin
pnpm add entrypoints-output-webpack-plugin
yarn add entrypoints-output-webpack-plugin
bun add entrypoints-output-webpack-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2020-07-09 |
| First published | 2020-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 2 |
| Unpacked size | 437.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Pyrine.Law |
| Maintainers | pyrinelaw |
| Keywords | entrypoints-output, entrypoints, entrypoints-webpack-plugin, entrypoints-output-webpack, entrypoints-output-plugin, entrypoints-output-webpack-plugin |

## Links

- npm: https://www.npmjs.com/package/entrypoints-output-webpack-plugin
- Repository: https://github.com/pyrinelaw/entrypoints-output-webpack-plugin
- Homepage: https://github.com/pyrinelaw/entrypoints-output-webpack-plugin#readme
- Issues: https://github.com/pyrinelaw/entrypoints-output-webpack-plugin/issues
- npm.io page: https://npm.io/package/entrypoints-output-webpack-plugin

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [write-json](https://npm.io/package/write-json.md) ^3.0.1

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2020-07-09

## README

## entrypoints-output-webpack-plugin

webpack 插件，构建输出 output 文件配置，包含 js 与 css 输出资源，webpack >= 4.0.0

### 使用示例

```javascript
const EntrypointsOutputWebpackPlugin = require('entrypoints-output-webpack-plugin');

new EntrypointsOutputWebpackPlugin({
//     // 是否展示全部路径，设置为 ture 时会加上 webpack 配置中的 output.publicPath 
//     showFullPath: true,    
//     // 输出目录，必须写绝对路径，不传入时，默认使用 webpack 配置中的 output.path
//     output: path.join(__dirname, '../a/b/c'),
//     // 输出 json 文件名，默认为 “.entrypoints.json”
//     filename: 'a.json',
//     // filename: '.entrypoints.json',
//     // 初始输出，输出的文件夹中除了默认的 entrypoints ,还会包含 initOutput 中的值
//     initOutput: {
//         init: {
//             js: 'https://www.google.com/xxx.js',
//             css: 'https://a.b.com/x/y/z.css',
//         },
//     },
}),
```

### option 参数说明

参数     | 类型 | 是否必传 | 默认值 | 说明
-------- | --- | --- | --- | ---
showFullPath | Boolean | 否 | false | 是否展示全部路径，设置为 ture 时会加上 webpack 配置中的 output.publicPath
output | String | 否 | 默认使用 webpack 配置中的 output.path | 输出目录，必须写绝对路径，不传入时，默认使用 webpack 配置中的 output.path
filename | String | 否 | .entrypoints.json | 输出 json 文件名，默认为 “.entrypoints.json”
initOutput | Object | 否 | null | 初始输出，输出的文件夹中除了默认的 entrypoints ,还会包含 initOutput 中的值

---
_Source: https://npm.io/package/entrypoints-output-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
