File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -78,14 +78,16 @@ function copyAssets(output, plugin) {
7878function copyResources ( output , plugin ) {
7979 var logger = output . getLogger ( ) ;
8080
81- var options = output . getOptions ( ) ;
82- var prefix = options . get ( 'prefix' ) ;
81+ var options = output . getOptions ( ) ;
8382 var outputRoot = options . get ( 'root' ) ;
8483
85- var pluginRoot = plugin . getPath ( ) ;
86- var resources = plugin . getResources ( prefix ) ;
84+ var state = output . getState ( ) ;
85+ var resources = state . getResources ( ) ;
86+
87+ var pluginRoot = plugin . getPath ( ) ;
88+ var pluginResources = resources . get ( plugin . getName ( ) ) ;
8789
88- var assetsFolder = resources . get ( 'assets' ) ;
90+ var assetsFolder = pluginResources . get ( 'assets' ) ;
8991 var assetOutputFolder = path . join ( outputRoot , 'gitbook' , plugin . getNpmID ( ) ) ;
9092
9193 if ( ! assetsFolder ) {
You can’t perform that action at this time.
0 commit comments