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

How to use with commandline rollup? #122

Open
ygoe opened this issue Jun 17, 2022 · 1 comment
Open

How to use with commandline rollup? #122

ygoe opened this issue Jun 17, 2022 · 1 comment

Comments

@ygoe
Copy link

ygoe commented Jun 17, 2022

I'm using rollup on the commandline, it's executed from another tool program (not written in JavaScript). How can I enable this plugin in this scenario? The only documentation I could find is the very short readme file, and I don't understand what it says about the usage. What's that code? Where should I put it?

Here's basically what I do:

npm install -g rollup
C:\Users\...\rollup ui-singlefile.js -o build\ui-singlefile.bundle.js -m

What do I need to change in this command line to use the plugin?

@ygoe
Copy link
Author

ygoe commented Jun 18, 2022

Looks like that anonymous code blob in the readme is a config file for rollup. Never seen or used them. And they don't fit in my workflow either. This is how I managed to get it working without such files:

npm install -g rollup
npm install -g rollup-plugin-sourcemaps
rollup ui-singlefile.js -o build\ui-singlefile.bundle.js -m -p rollup-plugin-sourcemaps

Would be nice to have a bit more explanation in the description.

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