浏览代码

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

Kamil Piechaczek 9 年之前
父节点
当前提交
42f5722ffb
共有 1 个文件被更改,包括 2 次插入1 次删除
  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 );