You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I love how easy and seamless this plugin makes development.
Chrome has this special feature, where extensions can access file URLs.
What I used to do before is create a local file and @require it in the script comment with an empty body, which made things simpler - you can use an IDE instead of the built in editor, and you don't need to reimport.
For example @require file:///C:/Users/martixy/Desktop/Scripts/my-script.user.js
The plugin already has the build.metaFileName which is really nice, so I think it would be useful to have an option to put the full local build as a require for the meta file only, and maybe also have a command to deploy only the meta+local require.
Like maybe a build.metaFileRequireLocalBuild config option and a deploylocal command (also probably rename the preview command to "deploy" in package.json).
You can kind of hack around vite.config.js to achieve (most of) the same result, but it'd be nice to have that as a first-party option.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I love how easy and seamless this plugin makes development.
Chrome has this special feature, where extensions can access file URLs.
What I used to do before is create a local file and
@require
it in the script comment with an empty body, which made things simpler - you can use an IDE instead of the built in editor, and you don't need to reimport.For example
@require file:///C:/Users/martixy/Desktop/Scripts/my-script.user.js
The plugin already has the
build.metaFileName
which is really nice, so I think it would be useful to have an option to put the full local build as a require for the meta file only, and maybe also have a command to deploy only the meta+local require.Like maybe a
build.metaFileRequireLocalBuild
config option and adeploylocal
command (also probably rename the preview command to "deploy" in package.json).You can kind of hack around
vite.config.js
to achieve (most of) the same result, but it'd be nice to have that as a first-party option.Beta Was this translation helpful? Give feedback.
All reactions