I'm a webpack rookie who wants to learn all about it.I came across a conflict when running my webpack telling me:
ERROR in chunk html [entry] app.js Conflict: Multiple assets emit tothe same filename app.js
What should I do to avoid the conflict?
This is my webpack.config.js:
module.exports = { context: __dirname +"/app", entry: {'javascript': "./js/app.js",'html': "./index.html", }, output: { path: __dirname +"/dist", filename: "app.js", }, resolve: { extensions: ['.js', '.jsx', '.json'] }, module: { loaders: [ { test: /\.jsx?$/, exclude: /node_modules/, loaders: ["babel-loader"] }, { test: /\.html$/, loader: "file-loader?name=[name].[ext]", } ] }};