webpack-bootstrap
Version:
Easily implement webpack for any kind of front-end app
46 lines (31 loc) • 1.56 kB
Markdown
# Webpack Bootstrap
Easy implement webpack for any kind of font-end app.
[](https://nodejs.org/en/)
[](http://commitizen.github.io/cz-cli/)
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fmrbone%2Fwebpack-bootstrap?ref=badge_shield)
[](https://travis-ci.org/mrbone/webpack-bootstrap)
[](https://codecov.io/gh/mrbone/webpack-bootstrap?branch=master)
## Install
```bash
npm install webpack-bootstrap --save-dev
```
## Tasks
Webpack-bootstrap support `build` and `dev` task right now. Set a script in `package.json` to easily invoke tasks.
When you run the tasks below first time, you will been asked for which liberary you wanna compile, and then save this in `.wbootrc` in your package root folder.
```json
"scripts": {
"wboot": "wboot"
}
```
### build
Create a js bundle from `src/index`, the extension can be `js/jsx`.
```bash
yarn wboot build
```
### start
Start a local server.
```bash
yarn wboot dev
```
## License
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fmrbone%2Fwebpack-bootstrap?ref=badge_large)