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

60 lines
1.3 KiB

2 years ago
# happy-site-webpack-plugin
2 years ago
**In Development**
A Webpack Plugin to generate a Website from a hierarchical Markdown file structure.
2 years ago
Why? The Main reason i had to update some Websites, but realise there were no benfit
to use a Full CMS or Headless CMS like Directus. Rendering the same pages that a rarley updated
seems like a waste of energy. Why not generate from a hierachical file structure. Luckly i
i had development a CMS that runs on Markdown File a few years ago as a proof of concept.
1 year ago
## Roadmap
Next will be,
* Integrate Eta.js and LiquidJS
2 years ago
## Installation
```
1 year ago
npm i --save-dev site-o-mat-webpack-plugin
yarn add --dev site-o-mat-webpack-plugin
```
## Configuration
```
const SiteOmatWebpackPlugin = require('site-o-mat-webpack-plugin')
plugins: [
new SiteOmatWebpackPlugin(
'./resources/site',
'./resources/views'
)
]
2 years ago
```
1 year ago
| Name | Type | Default | Description |
|-------------|-----------|---------|-------------|
| destination | {String} | null | If not set, it will use the public path |
| htmlMinify | {Boolean} | true | Minify Html and remove all Whitespace |
2 years ago
## Markdown Files
```
---
title: "health goth DIY tattooed"
view: "home.njk"
meta:
description: "La"
media:
teaser:
src: "_images/test.jpeg"
alt: "cold-pressed"
---
```
## Block Files