Copy-webpack-plugin: watch file not working in watch mode

Created on 30 Jul 2016  Â·  7Comments  Â·  Source: webpack-contrib/copy-webpack-plugin

As readme says:

By default, we only copy modified files during a watch or webpack-dev-server build.

But it's not working in my project. Here is the webpack.config.js

var webpack = require('webpack');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var path = require('path');

module.exports = {
    watch: true,
    entry: './deal/static/js/index.js',
    output: {
        path: './dist',
        filename: 'build.js'
    },
    plugins: [

        new CopyWebpackPlugin([
            {
                from: 'deal/page/index.html',
                to: 'index.html'
            }
        ])
    ]
};

PS: the index.html copied to the dist directory successfully, but can not watch the index.html.
Any suggestion will be helpful.

Most helpful comment

I have the same issue here
sorry seems it dose copy, just not showing it when not in debug mode

All 7 comments

+1

I'd enable debugging (info level) with the latest version of the plugin (v4.0.0). Are you using webpack-dev-server or --watch?

I have the same issue here
sorry seems it dose copy, just not showing it when not in debug mode

@Bnaya Thank you very much, I didn't realize that! Someoneâ„¢ should add Somethingâ„¢ to the documentation about this :)

:+1:
This bug is still remaining

sorry, it was already fixed. It seems working.

Feel free to reopen if still regressions :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kimgysen picture kimgysen  Â·  3Comments

dmarcautan picture dmarcautan  Â·  5Comments

jbruni picture jbruni  Â·  3Comments

alex88 picture alex88  Â·  4Comments

gh67uyyghj picture gh67uyyghj  Â·  4Comments