# free-ground-cli

> 集成了 webpack, webpack-dev-server, html-webpack-plugin, 适用于想简单打包, 却不想每次都配置的情况

Latest version **1.0.9** (published 2022-03-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install free-ground-cli
pnpm add free-ground-cli
yarn add free-ground-cli
bun add free-ground-cli
```

Provides the command `free`.

## 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.9 |
| Published | 2022-03-17 |
| First published | 2022-03-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | liuxueyi |
| Keywords | config free, pack, easy |

## Links

- npm: https://www.npmjs.com/package/free-ground-cli
- npm.io page: https://npm.io/package/free-ground-cli

## Dependencies (3)

- [webpack](https://npm.io/package/webpack.md) ^5.70.0
- [webpack-dev-server](https://npm.io/package/webpack-dev-server.md) ^4.7.4
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) ^5.5.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.9 (latest) — 2022-03-17
- 1.0.8 — 2022-03-17
- 1.0.7 — 2022-03-16
- 1.0.6 — 2022-03-16
- 1.0.5 — 2022-03-16
- 1.0.4 — 2022-03-16
- 1.0.3 — 2022-03-16
- 1.0.2 — 2022-03-16
- 1.0.1 — 2022-03-15
- 1.0.0 — 2022-03-15

## README

# 🍦free-ground-cli v1.0.9

集成了 webpack, webpack-dev-server, html-webpack-plugin, 适用于想简单打包, 却不想每次都配置的情况

---

## 安装

```bash
npm i free-ground-cli --save-dev
或
yarn add free-ground-cli --save-dev
```

## 使用

执行 webpack 打包：

```
npx free
```

执行 webpack-dev-server 服务：

```
npx free dev
```

或者在 package.json 中配置

```json
  ...
  "scripts": {
    "start": "free dev",
    "build": "free"
  },
  ...
```

然后执行

```
npm start
npm run build
```

## 默认配置

默认入口 src/index.js, 输出 ./dist, html 模板 src/document.ejs

```JavaScript
// webpack.config.js

const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");

module.exports = {
  mode: "development",
  entry: {
    index: "./src/index.js",
  },
  plugins: [
    new HtmlWebpackPlugin({
      template: "./src/document.ejs",
    }),
  ],
  devServer: {
    static: "./dist",
    hot: true,
  },
  output: {
    filename: "[name].bundle.js",
    path: path.resolve("./dist"),
  },
};
```

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