# @leax/cli-server

> cli-server for @leax/cli

Latest version **2.2.0** (published 2022-08-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @leax/cli-server
pnpm add @leax/cli-server
yarn add @leax/cli-server
bun add @leax/cli-server
```

Provides the command `leax-server`.

## 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 | 2.2.0 |
| Published | 2022-08-18 |
| First published | 2022-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 20 |
| Unpacked size | 36.2 KB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Author | ruichao |
| Maintainers | ruichao |
| Keywords | webpack, @leax, @leax/cli, @leax/cli-server |

## Links

- npm: https://www.npmjs.com/package/@leax/cli-server
- Repository: https://github.com/yangruichao/leax
- Homepage: https://github.com/yangruichao/leax#readme
- Issues: https://github.com/yangruichao/leax/issues
- npm.io page: https://npm.io/package/@leax/cli-server

## Dependencies (20)

- [debug](https://npm.io/package/debug.md) ^4.3.4
- [postcss](https://npm.io/package/postcss.md) ^8.4.16
- [webpack](https://npm.io/package/webpack.md) ^5.74.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.6
- [css-loader](https://npm.io/package/css-loader.md) ^6.7.1
- [portfinder](https://npm.io/package/portfinder.md) ^1.0.28
- [webpackbar](https://npm.io/package/webpackbar.md) ^5.0.2
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^4.10.0
- [style-loader](https://npm.io/package/style-loader.md) ^3.3.1
- [thread-loader](https://npm.io/package/thread-loader.md) ^3.0.4
- [webpack-merge](https://npm.io/package/webpack-merge.md) ^5.8.0
- [postcss-loader](https://npm.io/package/postcss-loader.md) ^7.0.1
- [webpack-dev-server](https://npm.io/package/webpack-dev-server.md) ^4.9.3
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) ^5.5.0
- [sass-resources-loader](https://npm.io/package/sass-resources-loader.md) ^2.2.5
- [terser-webpack-plugin](https://npm.io/package/terser-webpack-plugin.md) ^5.3.3
- [@leax/cli-shared-utils](https://npm.io/package/@leax/cli-shared-utils.md) ^2.2.0
- [mini-css-extract-plugin](https://npm.io/package/mini-css-extract-plugin.md) ^2.6.1
- [compression-webpack-plugin](https://npm.io/package/compression-webpack-plugin.md) ^10.0.0
- [css-minimizer-webpack-plugin](https://npm.io/package/css-minimizer-webpack-plugin.md) ^4.0.0

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

- 2.2.0 (latest) — 2022-08-18
- 2.1.2-alpha.6 (alpha) — 2022-08-17
- 2.1.2-alpha.4 — 2022-08-17
- 2.1.2-alpha.3 — 2022-08-17
- 2.1.2-alpha.2 — 2022-08-17
- 2.1.2-alpha.1 — 2022-08-17
- 2.1.2-alpha.0 — 2022-08-17
- 2.1.1 — 2022-08-15
- 2.1.0 — 2022-08-15
- 2.0.2-alpha.2 — 2022-08-15
- 2.0.0-alpha.1 — 2022-08-14
- 2.0.0-alpha.0 — 2022-08-14
- 1.1.0 — 2022-08-11
- 1.0.7 — 2022-08-11
- 1.0.6 — 2022-08-11
- … 6 more at https://npm.io/package/@leax/cli-server/versions

## README

### Used
```
  npm install @leax/cli-server -D
  
  // package.json
  "scripts": {
    "dev": "leax-server dev",
  }

  // leax.config.js
  module.exports = {
    entry: 'xxx',
    output: {
      path: './dist',
      publicPath: '/',
      filename: 'js/[name].[contenthash:6].js',
      clean: true,
    },
    mode: process.env.NODE_ENV || 'development',
    devServer: {
      host: 'localhost',
      static: 'dist',
      port: 8000,
      open: true,
      hot: true,
    },
    extensions: ['.js', '.jsx', '.ts', '.tsx', '.scss', '.css'],
    alias: {
      '@': './src',
    },
  }
  ...
```

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