File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff 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 ) . |
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments