@@ -16,7 +16,7 @@ const cli = meow(`
16
16
--output -o Output File or Folder
17
17
--config -c Path to config file
18
18
--use -u PostHTML plugin name
19
- --base -b Mirror the directory structure relative to this path in the output directory
19
+ --root -r Mirror the directory structure relative to this path in the output directory
20
20
--help -h CLI Help
21
21
--version -v CLI Version
22
22
@@ -28,7 +28,7 @@ const cli = meow(`
28
28
$ posthtml input.html -o output.html -u posthtml-bem --posthtml-bem.elemPrefix __
29
29
$ posthtml inputFolder/*.html -o outputFolder
30
30
$ posthtml inputFolder/**/*.html -o outputFolder
31
- $ posthtml inputFolder/**/*.html -o outputFolder -b inputFolder
31
+ $ posthtml inputFolder/**/*.html -o outputFolder -r inputFolder
32
32
` , {
33
33
flags : {
34
34
config : {
@@ -51,9 +51,9 @@ const cli = meow(`
51
51
type : 'array' ,
52
52
alias : 'u'
53
53
} ,
54
- base : {
54
+ root : {
55
55
type : 'string' ,
56
- alias : 'b '
56
+ alias : 'r '
57
57
}
58
58
}
59
59
} ) ;
@@ -74,7 +74,7 @@ const getPlugins = config => Object.keys(config.plugins || {})
74
74
const config = cfgResolve ( cli ) ;
75
75
76
76
const processing = async file => {
77
- const output = await outResolve ( file , config . output , config . base ) ;
77
+ const output = await outResolve ( file , config . output , config . root ) ;
78
78
const plugins = Array . isArray ( config . plugins ) ? config . plugins : getPlugins ( config ) ;
79
79
80
80
makeDir ( path . dirname ( output ) )
0 commit comments