Skip to content

Commit

Permalink
webpack demo
Browse files Browse the repository at this point in the history
  • Loading branch information
stanley-cheung committed Aug 10, 2018
1 parent f00c167 commit 3155a8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion net/grpc/gateway/docker/commonjs_client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $EXAMPLE_DIR/commonjs-example
RUN cd $EXAMPLE_DIR/commonjs-example && \
npm install && \
npm link grpc-web && \
./node_modules/.bin/browserify client.js > out.js
npx webpack client.js

EXPOSE 8081
CMD ["nginx"]
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<title>Echo Example</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="./out.js"></script>
<script src="./dist/main.js"></script>
</head>
<body>
<div class="container">
Expand Down
4 changes: 3 additions & 1 deletion net/grpc/gateway/examples/echo/commonjs-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"grpc-web": "^0.2.0"
},
"devDependencies": {
"browserify": "16"
"browserify": "16",
"webpack": "4",
"webpack-cli": "3"
}
}

0 comments on commit 3155a8b

Please sign in to comment.