# webpack-run

> webpack run

Latest version **1.0.2** (published 2016-07-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-run
pnpm add webpack-run
yarn add webpack-run
bun add webpack-run
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-07-05 |
| First published | 2016-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | sunjunping |
| Maintainers | sunjunping |
| Keywords | webpack-run |

## Links

- npm: https://www.npmjs.com/package/webpack-run
- Repository: https://github.com/ajunflying/webpack-run
- Homepage: https://github.com/ajunflying/webpack-run#readme
- Issues: https://github.com/ajunflying/webpack-run/issues
- npm.io page: https://npm.io/package/webpack-run

## Dependencies (1)

- [colors](https://npm.io/package/colors.md) ^1.1.2

## 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

- 1.0.2 (latest) — 2016-07-05

## README

# webpack-run
##### webpack 自动构建脚本

> 安装 cnpm install git://github.com/ajunflying/webpack-run.git

###### demo
```
  var path = require('path');
  var WebpackRun = require('webpack-run');
  var webpackRun = new WebpackRun(path.join(__dirname, 'page'));
  
  webpackRun.setRemoveFile([
    path.join(__dirname, 'page', 'a.js')
  ]);
  
  //webpackRun.setEnv(WebpackRun.Env.normal);

  webpackRun.do(function (error) {
      console.log(error); 
  });
```



###### 方法
* setRemoveFile  添加不构建的文件，完整绝对路径
* setEnv  运行方式，默认监听运行，normal watch，
* setPrefix 需要替换的文件名后缀 默认.bl
* do  运行入口

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