Attach extra watcher on files that are not already monitored by webpack
// webpack.config.js
const FileWatcherPlugin = require("file-watcher-webpack-plugin");
// ...
plugins: [
new FileWatcherPlugin({
root: __dirname,
files: ['*.php', '*.twig']
})
]