score:0

Accepted answer
<script src="app.js"></script>

score:0

var webpack = require('webpack');
var path = require('path');
module.exports={
devtool :'inline-source-map',
entry : ['webpack-dev-server/client?http://127.0.0.1:8000',
'webpack/hot/only-dev-server',
'./src'
] ,
output :{
path: path.join(__dirname, 'build'),
filename: 'bundle.js',
},
resolve:{
 modulesDirectories : ['node_modules','src'],
 extensions : ['','.js']
},
module : {
loaders :[
  {
    test : /\.jsx?$/,
    exclude : /node_modules/,
    loaders :['react-hot','babel?presets[]=react,presets[]=es2015,presets[]=stage-0']
  }
]
},
 plugins :[new webpack.HotModuleReplacementPlugin(),
 new webpack.NoErrorsPlugin()
  ]

};

score:1

<body>
  <div id="app"></div>
  <script src="./dist/app.js"></script>
</body>

Related Query

More Query from same tag