# ssi-compile-webpack-plugin

> compile ssi webpack plugin

Latest version **1.1.0** (published 2016-12-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install ssi-compile-webpack-plugin
pnpm add ssi-compile-webpack-plugin
yarn add ssi-compile-webpack-plugin
bun add ssi-compile-webpack-plugin
```

## 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.1.0 |
| Published | 2016-12-01 |
| First published | 2016-12-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | studzw |
| Maintainers | studzw |
| Keywords | webpack, ssi, plugin |

## Links

- npm: https://www.npmjs.com/package/ssi-compile-webpack-plugin
- Repository: https://github.com/studzw/ssi-compile-webpack-plugin
- Homepage: https://github.com/studzw/ssi-compile-webpack-plugin#readme
- Issues: https://github.com/studzw/ssi-compile-webpack-plugin/issues
- npm.io page: https://npm.io/package/ssi-compile-webpack-plugin

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.79.0
- [html-minifier](https://npm.io/package/html-minifier.md) ^3.2.3

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2016-12-01

## README

# 静态编译ssi资源

## 使用

```javascript
// webpack.config.js
const SSICompileWebpackplugin = require('ssi-compile-webpack-plugin')
module.exports = {
    // config
    plugin: [
        new SSICompileWebpackplugin({
            publicPath: '',
            localBaseDir: '/',
            minify: false
        })
    ]
}
```

### 配合其他插件

> 插件的资源是根据webpack已有资源表中查找`.html`后缀产生的。所以正常需要配合其他插件/loader去读取.html作为入口

```javascript
const HtmlWebpackPlugin = require('html-webpack-plugin')
const SSICompileWebpackplugin = require('ssi-compile-webpack-plugin')
module.exports = {
    // config
    plugin: [
        new HtmlWebpackPlugin({
            // setting
        }),
        new SSICompileWebpackplugin({
            publicPath: '',
            localBaseDir: '/',
            minify: false
        })
    ]
}
```


## 配置说明

| *key* | *value* | *说明* |
| :---------  | :--------- | :------------------- |
| publicPath | String | 资源基础路径,为空时不处理路径，不为空的时将路径拼接为`${publicPath}/${path.basename}`, 默认 '' |
| localBaseDir | String | si本地路径的基础路径, 默认 '/' |
| minify | Boolean | 是否压缩html, 默认 false |
| ext | String | 需要处理的文件后缀,多后缀名使用`|`分割，如 `.html|.shtml` 默认 .html |

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