-
Notifications
You must be signed in to change notification settings - Fork 318
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
rollup-plugin-terser minifying #116
Comments
It works for me pretty much out of the box on a quick test.
npm install -D rollup-plugin-terser
import { terser } from "rollup-plugin-terser";
plugins: [
clear({ targets: ["dist"] }),
resolve(),
commonjs(),
typescript({tsconfig: "./tsconfig.json"}),
terser(),
screeps({config: cfg, dryRun: cfg == null})
] This should run the compiled bundle of Javascript through terser before uploading to Screeps. If you have more questions about terser options you're better off checking with the plugin author. |
Can I use "cleanup" plugin with terser? I see a lots of people doing that. If yes, who shoud come first? |
Hi,
Can anybody help me with adding terser to the rollup plugins for minifying ?
The text was updated successfully, but these errors were encountered: