Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New options for deploying? #153

Open
martixy opened this issue May 9, 2024 Discussed in #150 · 0 comments
Open

New options for deploying? #153

martixy opened this issue May 9, 2024 Discussed in #150 · 0 comments

Comments

@martixy
Copy link

martixy commented May 9, 2024

Discussed in #150

Originally posted by martixy April 22, 2024
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.

You don't seem to monitor discussions, so moving this over to issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant