Skip to content

Commit 8fa74f4

Browse files
docs: update changelog of 'build' module
1 parent 2f57bbd commit 8fa74f4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.changeset/breezy-groups-turn.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
22
'@lg-tools/build': minor
3-
'@lg-tools/cli': minor
43
---
54

6-
Introduced new `lg build-minify` and `lg-build minify` commands to separately minify JavaScript bundle files.
7-
Files to be minified can be specified using the `--glob` argument (default: `--glob=dist/**/*.*js --glob=!dist/**/*-min.*js`).
8-
This allows generating both minified and non-minified bundles in the same package for use in different environments, decoupling minification from the main build process.
5+
Added a new exported `modernDevProdConfig` Rollup configuration, designed for component packages.
6+
7+
This configuration generates both minified and non-minified bundles to support production and development environments respectively. Please update the `exports` field in your `package.json` to include a `browser.production` entry for both `import` and `require` that points to the minified bundle (`[bundle-name]-min.js`). This ensures that consumers’ build tools use the optimized, minified bundle in production automatically.
8+
9+
The charts/legend package is the initial adopter of this configuration and is a good example of how to use this new configuration.

0 commit comments

Comments
 (0)