Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. # Webpack 2.0
  2.  
  3. ## Basic Setup just using `package.json`
  4.  
  5. This basic set up will compile a single JS file.
  6.  
  7. ```javascript
  8. {
  9. "name": "webpack-starter",
  10. "version": "1.0.0",
  11. "description": "",
  12. "main": "index.js",
  13. "scripts": {
  14. "build": "webpack src/main.js dist/bundle.js",
  15. "watch": "webpack src/main.js dist/bundle.js --watch",
  16. },
  17. "devDependencies": {
  18. "webpack": "^2.2.1"
  19. }
  20. }
  21. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement