Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Webpack 2.0
- ## Basic Setup just using `package.json`
- This basic set up will compile a single JS file.
- ```javascript
- {
- "name": "webpack-starter",
- "version": "1.0.0",
- "description": "",
- "main": "index.js",
- "scripts": {
- "build": "webpack src/main.js dist/bundle.js",
- "watch": "webpack src/main.js dist/bundle.js --watch",
- },
- "devDependencies": {
- "webpack": "^2.2.1"
- }
- }
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement