Guest User

Untitled

a guest
Jan 15th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. To install React DOM and build your bundle with webpack:
  2.  
  3. $ npm install --save react react-dom babel-preset-react
  4. $ webpack
  5.  
  6. webpack <entry> <output>
  7.  
  8. module.exports = {
  9. context: __dirname + "/app",
  10. entry: {
  11. jsx: './main.js',
  12. html: './index.html'
  13. },
  14. output: {
  15. path: __dirname + '/dist',
  16. filename: 'bundle.js'
  17. }
  18. }
Add Comment
Please, Sign In to add comment