Skip to content

Optimize the production build #380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 23, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace :react do
task :build do
Dir.chdir("react-builds") do
`webpack`
`NODE_ENV=production webpack`
`NODE_ENV=production webpack -p`
end
end

Expand All @@ -36,6 +36,13 @@ namespace :react do
copy_react_asset("#{environment}/react-server-with-addons.js", "#{environment}-with-addons/react-server.js")
end
end

desc "Use NPM to install the JavaScript dependencies"
task :install do
Dir.chdir("react-builds") do
`npm install`
end
end
end

require 'appraisal'
Expand Down
10 changes: 7 additions & 3 deletions lib/assets/react-source/development-with-addons/react-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -19606,19 +19606,23 @@
/* 158 */
/***/ function(module, exports, __webpack_require__) {

var addons = {};
/* WEBPACK VAR INJECTION */(function(process) {var addons = {};
addons.TransitionGroup = __webpack_require__(159);
addons.CSSTransitionGroup = __webpack_require__(162);
addons.LinkedStateMixin = __webpack_require__(167);
addons.cloneWithProps = __webpack_require__(171);
addons.createFragment = __webpack_require__(175);
addons.update = __webpack_require__(177);
addons.PureRenderMixin = __webpack_require__(179);
addons.TestUtils = __webpack_require__(182);
addons.Perf = __webpack_require__(184);

if (process.env.NODE_ENV !== "production") {
addons.TestUtils = __webpack_require__(182);
addons.Perf = __webpack_require__(184);
}

module.exports = addons;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4)))

/***/ },
/* 159 */
Expand Down
10 changes: 7 additions & 3 deletions lib/assets/react-source/development-with-addons/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -19605,19 +19605,23 @@
/* 158 */
/***/ function(module, exports, __webpack_require__) {

var addons = {};
/* WEBPACK VAR INJECTION */(function(process) {var addons = {};
addons.TransitionGroup = __webpack_require__(159);
addons.CSSTransitionGroup = __webpack_require__(162);
addons.LinkedStateMixin = __webpack_require__(167);
addons.cloneWithProps = __webpack_require__(171);
addons.createFragment = __webpack_require__(175);
addons.update = __webpack_require__(177);
addons.PureRenderMixin = __webpack_require__(179);
addons.TestUtils = __webpack_require__(182);
addons.Perf = __webpack_require__(184);

if (process.env.NODE_ENV !== "production") {
addons.TestUtils = __webpack_require__(182);
addons.Perf = __webpack_require__(184);
}

module.exports = addons;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4)))

/***/ },
/* 159 */
Expand Down
Loading