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

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