Last active
November 28, 2016 09:39
-
-
Save JulienPradet/d37479e0b1f6b83bfa815b000574e648 to your computer and use it in GitHub Desktop.
Revisions
-
JulienPradet revised this gist
Nov 28, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,6 +17,6 @@ entryStream.push(null) var compiler = webpack(/* config */) const bundleStream = compiler.transformStream(entryStream) fs.writeFile('config.js', bundleStream) -
JulienPradet revised this gist
Nov 28, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,4 +19,4 @@ var compiler = webpack(/* config */) const bundleStream = compiler.transformStream(stream) fs.writeFile('config.js', bundleStream) -
JulienPradet created this gist
Nov 28, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ import webpack from 'webpack' import {Readable} from 'stream' const entryStream = new Readable() entryStream.push(` import { configure } from '@kadira/storybook'; function loadStories() { require('./story1.js'); require('./story2.js'); require('./story3.js'); } configure(loadStories, module); `) entryStream.push(null) var compiler = webpack(/* config */) const bundleStream = compiler.transformStream(stream) fs.writeFile('bundle.js', bundleStream)