Description
Hi, I've created a Webpack plugin for developers to develop userscripts with powerful Webpack toolchains.
The plugin actually prepends the meta block to output scripts, and also generates the corresponding *.meta.js along with each script.
Developers can benefit from using the plugin along with webpack-dev-server to serve the output files in watch mode. Once modification on source files are saved, the output files are compiled. Also a build number can be appended to the version string to force the version increase.
To test the scripts, an URL pointed to the output of the webpack-dev-server can be used to install the script to TM. However, after every change of source files, developers should manually click the update button provided by TM to update the script.
By default, the dev-server will reload/refresh the page when file changes are detected.
As described in the webpack doc, devServer.liveReload
configuration, the webpack-dev-server is able to reload the page on sources changed, the problem is that TM does not get informed about the change thus there is no update to the script.
I'm asking if there is a way to force TM update the script when page reload (which means sources changed), the feature can be enabled only if you know you're developing on specific script, to avoid annoying normal users. (or is there any existing solution to make the dev flow works?)
Any feedback is appreciated, thanks!
Activity
derjanb commentedon Oct 16, 2019
Simply copy your script header to Tampermonkey, then
@require
the real script as external resource and enabled "Advanced" "Config Mode" to be able to set "Externals" > "Update Interval" to "Always"Kane-Kuroneko commentedon Nov 4, 2024
please reopen this , issue still exsist yet.