Skip to content
Advertisement

Tag: html-webpack-plugin

Using Webpack HtmlWebpackPlugin

I am very new to webpack and stuffs, I need a solution to separate base href of index.html and src for bundle.js, for development and production as both are different. For Development base href = localhost src = /bundle.js For Production base href = server url src = /dist/bundle.js To solve the above problem I am trying to use HtmlWebpackPlugin,

Webpack, html-webpack-plugin, Error: Child compilation failed

I ‘ve got a problem with my webpack configuration. After implementing html-webpack-plugin I got an Error, there’s whole error stack from generated index.html. Error Stack: Html Webpack Plugin: Error: Child compilation failed: Conflict: Multiple assets emit to the same filename index.html: Error: Conflict: Multiple assets emit to the same filename index.html compiler.js:76 [Pre-build]/[html-webpack-plugin]/lib/compiler.js:76:16 Compiler.js:291 Compiler. [Pre-build]/[webpack]/lib/Compiler.js:291:10 Compiler.js:494 [Pre-build]/[webpack]/lib/Compiler.js:494:13 Tapable.js:138 next

Advertisement