Ejemplo n.º 1
0
gulp.task('dist', ['build'], () => {
	const entry = 'lib/index.html';
	const b = new Bundler({
		inlineScripts: true
	});

	return b.generateManifest([entry])
		.then(manifest => b.bundle(manifest))
		.then(bundles => {
			const {ast} = bundles.documents.get(entry);
			const html = serialize(ast);

			mkdirSync('dist');

			return pify(writeFile)('dist/polymer-redux.html', `${html}\n`);
		});
});
Ejemplo n.º 2
0
		.then(manifest => b.bundle(manifest))