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.
+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 :)
Most helpful comment
I have the same issue here
sorry seems it dose copy, just not showing it when not in debug mode