mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-27 19:25:11 +08:00
Updates from Tuesday, March 3rd
- [ReactNative] Fix OSS Projects | Spencer Ahrens <sahrens@fb.com> - [react-packager] check-in node_modules and update tests | Amjad Masad <amasad@fb.com> - [react-packager] Cleanup package.json | Amjad Masad <amasad@fb.com> - [react-packager] Implement bundle minification | Amjad Masad <amasad@fb.com> - [react-packager] Add dev option to CLI | James Ide | Amjad Masad <amasad@fb.com> - [react-packager] Add uglify-js library | Amjad Masad <amasad@fb.com> - [f8] Make map zoomable on double-tap | Alex Kotliarskyi <frantic@fb.com>
This commit is contained in:
@@ -29,6 +29,10 @@ var options = parseCommandLine([{
|
||||
}, {
|
||||
command: 'root',
|
||||
description: 'add another root(s) to be used by the packager in this project',
|
||||
}, {
|
||||
command: 'dev',
|
||||
default: true,
|
||||
description: 'produce development packages with extra warnings enabled',
|
||||
}]);
|
||||
|
||||
if (!options.projectRoots) {
|
||||
@@ -93,7 +97,7 @@ function openStackFrameInEditor(req, res, next) {
|
||||
|
||||
function getAppMiddleware(options) {
|
||||
return ReactPackager.middleware({
|
||||
dev: true,
|
||||
dev: options.dev,
|
||||
projectRoots: options.projectRoots,
|
||||
blacklistRE: blacklist(false),
|
||||
cacheVersion: '2',
|
||||
|
||||
Reference in New Issue
Block a user