Skip to content

Commit fb17c98

Browse files
committed
Default configuration fixes
1 parent 354b494 commit fb17c98

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ You can configure extension with custom options as well.
3434
| Key | Type | Default | Description |
3535
|---------------|-----------------------|-----------------------|-------------|
3636
| `enabled` | `{Boolean}` | `true` | Determines whether HTML should be generated. |
37+
| `dir` | `{String}` | `'__dirname.split('node_modules')[0]'` | Path to project directory |
3738
| `root` | `{String}` | `'./resources/twig'` | Path to root directory of Twig templates. |
3839
| `entries` | `{Array}` | `['**/!(_)*.twig']` | Match entries with `glob`. |
3940
| `output` | `{String}` | `'./html'` | Path to HTML output. |
4041
| `data` | `{String}` | `'data/**/*.{y?(a\|)ml,json}'` | Path to YAML and/or JSON files in root directory. |
4142
| `dataExtend` | `{Object}` | `{}` | Extend data manually. |
43+
| `replaceOutputPath` | `{String}` | `''` | Removes symbols in output path |
4244
| `flatten` | `{Boolean}` | `false` | When enabled, all HTML will be placed in the output folder without preserving the directory structure. |
4345
| `loader` * | `Object` | `{}` | `twig-html-loader` [options](https://github.com/radiocity/twig-html-loader#options). |
4446
| `html` * | `Object` | `{}` | `html-webpack-plugin` [options](https://github.com/jantimon/html-webpack-plugin#options). |

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class Twig {
5555
data: 'data/**/*.{y?(a|)ml,json}',
5656
dataExtend: {},
5757
flatten: false,
58+
replaceOutputPath: '',
5859
loader: {},
5960
html: {},
6061
beautify: false,

0 commit comments

Comments
 (0)