Created
          September 14, 2017 17:35 
        
      - 
      
 - 
        
Save purdrew/0c898f79a0808a6be9d8698624c2065b to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
| <title>Test Bug</title> | |
| </head> | |
| <body> | |
| <script src="bundle.js"></script> | |
| </body> | |
| </html> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import _ from 'lodash' | |
| function component() { | |
| var element = document.createElement('div'); | |
| element.innerHTML = _.join(['Hello', 'webpack'], ' '); | |
| return element; | |
| } | |
| document.body.appendChild(component()); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "name": "testbug", | |
| "version": "0.0.1", | |
| "description": "Test bug", | |
| "license": "UNLICENSED", | |
| "main": "index.js", | |
| "engines": { | |
| "node": ">=6.7.0", | |
| "npm": ">=3.10.0" | |
| }, | |
| "dependencies": { | |
| "lodash": "^4.17.4" | |
| }, | |
| "devDependencies": { | |
| "webpack": "^2.7.0", | |
| "webpack-dev-server": "^2.8.0" | |
| }, | |
| "scripts": { | |
| "build": "webpack", | |
| "start": "webpack-dev-server" | |
| } | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | module.exports = { | |
| entry: './index.js', | |
| output: { | |
| filename: 'bundle.js' | |
| }, | |
| devServer: { | |
| port: 8000, | |
| host: '0.0.0.0', | |
| stats: 'errors-only' | |
| } | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment