Copy-webpack-plugin: Does copy-webpack-plugin base its relative destination path on webpack's output

Created on 16 Oct 2018  路  1Comment  路  Source: webpack-contrib/copy-webpack-plugin

Can you please clarify? I specify in my webpack config the bundle output to be in the www folder. Then I use the copy plugin like this:

plugins: [ new CopyWebpackPlugin([ { from: 'src/index.html', to: 'index.html', toType: 'file' }, ]) ],

So in this case the index.html ends up inside the www folder. Is that right? I was expecting it to be agnostic of the webpack's output path or at least via an option? I did not understand something like that from reading the docs, just need clarification if the base destination root is the one of webpack's, thanks.

>All comments

It is bug tracker, not stackoverflow or gitter, please use this services for question in future

Was this page helpful?
0 / 5 - 0 ratings

Related issues

richmeij picture richmeij  路  5Comments

kimgysen picture kimgysen  路  3Comments

serut picture serut  路  3Comments

ietabhi picture ietabhi  路  5Comments

stq picture stq  路  5Comments