I'm using html-webpack-plugin to output an HTML file to an absolute path outside of output.path. When I run webpack-dev-server with write-file-webpack-plugin enabled, it instead interprets that absolute path relative to the outputPath option provided to the plugin.
I'm using
html-webpack-plugin
to output an HTML file to an absolute path outside ofoutput.path
. When I runwebpack-dev-server
withwrite-file-webpack-plugin
enabled, it instead interprets that absolute path relative to theoutputPath
option provided to the plugin.For instance, using configuration like this:
this plugin writes the HTML file to
/path/to/outputDir/absolute/path/to/html/output
, not/absolute/path/to/html/output
as expected.I suspect this line is responsible, and should be changed to something like: