Skip to content

Commit

Permalink
Merge pull request #236 from kadirahq/cp-manager-srcmap
Browse files Browse the repository at this point in the history
Copy missing manager.js.map file
  • Loading branch information
Muhammed Thanish committed Jun 7, 2016
2 parents e14e2f2 + b27fdf6 commit 7288865
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/server/build.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,5 @@ logger.log('Building storybook ...');
// We need to copy the manager bundle distributed via the React Storybook
// directly into the production build overring webpack.
_shelljs2.default.cp(_path2.default.resolve(__dirname, '../manager.js'), _path2.default.resolve(outputDir, publicPath, 'manager.bundle.js'));
_shelljs2.default.cp(_path2.default.resolve(__dirname, '../manager.js.map'), _path2.default.resolve(outputDir, publicPath, 'manager.js.map'));
});
4 changes: 4 additions & 0 deletions src/server/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,8 @@ webpack(config).compile(function (err, stats) {
path.resolve(__dirname, '../manager.js'),
path.resolve(outputDir, publicPath, 'manager.bundle.js')
);
shelljs.cp(
path.resolve(__dirname, '../manager.js.map'),
path.resolve(outputDir, publicPath, 'manager.js.map')
);
});

0 comments on commit 7288865

Please sign in to comment.