Skip to content

Commit

Permalink
feat: import specified file to reduce file size
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Oct 20, 2016
1 parent a6a4b31 commit e332f13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ build:
rm -rf dist
mkdir -p dist
NODE_ENV=development ./node_modules/.bin/browserify index.js --standalone=dva -u react -u react-dom -g browserify-shim -t envify > dist/dva.js
NODE_ENV=development ./node_modules/.bin/browserify mobile.js --standalone=dva -u react -u react-dom -g browserify-shim -t envify > dist/mobile.js
NODE_ENV=development ./node_modules/.bin/browserify router.js --standalone=dva.router -u react -u react-dom -g browserify-shim -t envify > dist/router.js
NODE_ENV=development ./node_modules/.bin/browserify fetch.js --standalone=dva.fetch -u react -u react-dom -g browserify-shim -t envify > dist/fetch.js
./node_modules/.bin/uglifyjs -o dist/dva-min.js dist/dva.js
./node_modules/.bin/uglifyjs -o dist/mobile-min.js dist/mobile.js
./node_modules/.bin/uglifyjs -o dist/router-min.js dist/router.js
./node_modules/.bin/uglifyjs -o dist/fetch-min.js dist/fetch.js

Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { hashHistory, match } from 'react-router';
import hashHistory from 'react-router/lib/hashHistory';
import {
routerMiddleware,
syncHistoryWithStore,
Expand Down

0 comments on commit e332f13

Please sign in to comment.