Skip to content

Commit

Permalink
React added and webpack entries configured
Browse files Browse the repository at this point in the history
  • Loading branch information
victors1681 committed Dec 9, 2018
1 parent 6c5696f commit 1c0cc7a
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions dist/vendors.js

Large diffs are not rendered by default.

58 changes: 58 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@
"devDependencies": {
"webpack": "^4.27.1",
"webpack-cli": "^3.1.2"
},
"dependencies": {
"react": "^16.6.3",
"react-dom": "^16.6.3"
}
}
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ module.exports = env => {
mode:
env.NODE_ENV.development === "development" ? "development" : "production",
entry: {
app: [path.resolve(__dirname, "./src/index.js")]
app: [path.resolve(__dirname, "./src/index.js")],
vendors: ["react", "react-dom"]
}
};
return config;
Expand Down

0 comments on commit 1c0cc7a

Please sign in to comment.