Procházet zdrojové kódy

Adjust `buildEditorsForSamples()` function to the latest changes inside `ckeditor5-dev-docs`.

Kamil Piechaczek před 9 roky
rodič
revize
42f5722ffb
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      gulpfile.js

+ 2 - 1
gulpfile.js

@@ -185,7 +185,8 @@ function buildEditorsForSamples() {
 			file.dirname = file.dirname.replace( '/docs/samples', '' );
 		} ) )
 		.pipe( stream.noop( ( file ) => {
-			const bundleConfig = docsUtils.getBundlerConfigFromSample( file.contents );
+			const bundleConfig = docsUtils.getBundlerConfigFromSample( file.contents.toString( 'utf-8' ) );
+			bundleConfig.format = 'iife';
 			bundleConfig.path = file.path.match( /\/samples\/(.*)\.js$/ )[ 1 ];
 
 			const splitPath = bundleConfig.path.split( path.sep );