Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
Add comments to webpack explaining builds
Browse files Browse the repository at this point in the history
  • Loading branch information
wanderingstan committed Sep 14, 2018
1 parent ee7b533 commit b75a6d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions webpack.config.js
@@ -1,5 +1,9 @@
var nodeExternals = require('webpack-node-externals');

/*
* Generate index.js used in `origin` npm package.
* This is used by our DApp.
*/
var serverConfig = {
entry: ["babel-polyfill", './src/index.js'],
output: {
Expand Down Expand Up @@ -34,6 +38,10 @@ var serverConfig = {
}
}

/*
* Generate `origin.js` file that may be used standalone in browser
* This is used by our docs, and included in our github release.
*/
var clientConfig = {
entry: ["babel-polyfill", './src/index.js'],
output: {
Expand Down

0 comments on commit b75a6d1

Please sign in to comment.