Skip to content

Conversation

@Kageetai
Copy link

@Kageetai Kageetai commented Nov 25, 2024

Fixes #161

Add minification to the build process for main.js.

  • rollup.config.js

    • Import esbuild from rollup-plugin-esbuild and terser from rollup-plugin-terser.
    • Add esbuild and terser to the plugins array for minification.
  • package.json

    • Add rollup-plugin-esbuild as a devDependency.

For more details, open the Copilot Workspace session.

Fixes argenos#161

Add minification to the build process for `main.js`.

* **rollup.config.js**
  - Import `esbuild` from `rollup-plugin-esbuild` and `terser` from `rollup-plugin-terser`.
  - Add `esbuild` and `terser` to the `plugins` array for minification.

* **package.json**
  - Add `rollup-plugin-esbuild` as a devDependency.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/argenos/nldates-obsidian/issues/161?shareId=XXXX-XXXX-XXXX-XXXX).
* Add `rollup-plugin-terser` to `devDependencies`
* Remove `rollup-plugin-esbuild` from `devDependencies`
* Add `rollup-plugin-esbuild` to `dependencies`
* Add `rollup-plugin-terser` to `dependencies`
* Add various new dependencies and sub-dependencies in `package-lock.json`
* Update existing dependencies and sub-dependencies in `package-lock.json`
…ckage-lock.json`

* Remove `rollup-plugin-esbuild` entry from `dependencies` in `package.json`
* Remove `rollup-plugin-esbuild` and its related dependencies from `package-lock.json`
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

Successfully merging this pull request may close these issues.

Minify main.js

1 participant