You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
webpack-plugin/README.md

53 lines
890 B

2 years ago
# Site-O-Mat / Webpack Plugin
2 years ago
2 years ago
A Webpack Plugin that wraps [@site-o-mat/core](https://gitea.node001.net/site-o-mat/core).
2 years ago
2 years ago
## Installation
2 years ago
Setup this registry in your project .npmrc file:
```
2 years ago
@site-o-mat:registry=https://gitea.node001.net/api/packages/site-o-mat/npm/
```
or run
```
npm config set @site-o-mat:registry=https://gitea.node001.net/api/packages/site-o-mat/npm/
2 years ago
```
Install with npm or yarn
2 years ago
```
2 years ago
npm i --save-dev @site-o-mat/webpack-plugin
yarn add --dev @site-o-mat/webpack-plugin
2 years ago
```
## Configuration
Basic Usage:
2 years ago
```
2 years ago
const SiteomatWebpackPlugin = require('@site-o-mat/webpack-plugin')
2 years ago
plugins: [
new SiteomatWebpackPlugin(
2 years ago
'./resources/site',
'./resources/views'
)
]
2 years ago
```
Add options:
2 years ago
```
plugins: [
new SiteomatWebpackPlugin(
'./resources/site',
'./resources/views',
{
<options>
}
)
]
```