Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Conflict: Multiple assets emit to the same filename

$
0
0

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]",      }    ]  }};

Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>