Preact Cli Versions Save

😺 Your next Preact PWA starts in 30 seconds.

[email protected]

9 months ago

Minor Changes

  • #1798 96fc0f3 Thanks @rschristian! - TypeScript is now an optional peer dependency, rather than a direct dependency, of preact-cli.

    If you use TypeScript in your projects (.ts or .tsx), you will need to have your own version of TypeScript installed and added to your package.json. This gives you greator control over the version of TypeScript used and most already have TypeScript listed as a dependency anyways.

    For those not using TypeScript, no change is needed, and this should make your node_modules directory a bit smaller (~20% w/ barebones dependency list).

[email protected]

10 months ago

Patch Changes

  • #1785 a4968ee Thanks @rschristian! - If --prerenderUrls file exists on the disk, but it cannot be processed (thrown errors, incorrect format, etc), the build should error out rather than continue with a warning.

  • #1794 047837d Thanks @teodragovic! - Output CSS source map on build

[email protected]

1 year ago

Patch Changes

  • #1774 05ba4b2 Thanks @rschristian! - Injects necessary Node options config into new projects if user's Node version is 16+

[email protected]

1 year ago

Patch Changes

  • #1770 a526a00 Thanks @rschristian! - Fix for devServer info output possibly not matching up against devServer config

  • #1761 fb100b3 Thanks @rschristian! - Support proxied loaders w/ getLoadersByName() method in users' preact.config.js

  • #1336 bea4f50 Thanks @developit! - Temp files generated by preact-cli are now unique to a build, allowing for concurrent instances to run at the same time.

@preact/[email protected]

1 year ago

Patch Changes

[email protected]

1 year ago

Patch Changes

  • #1756 a41d498 Thanks @rschristian! - Improves prerender error message's output and positioning

  • #1760 a789c9d Thanks @rschristian!

    • Fixed bug in which --esm was not enabled by default for production builds on v3.4.2
    • Fixed bug in which --brotli would overwrite existing assets

[email protected]

1 year ago

Patch Changes

[email protected]

1 year ago

Patch Changes

  • #1711 5eb5d00 Thanks @rschristian! - Fix ensures that the load-manifest is only attempted to be built in prod. It serves no use in dev (as preloading is limited to prod) and can create a race condition when used alongside HMR.

[email protected]

1 year ago

Minor Changes

  • #1674 0346549 Thanks @rschristian! - Supports consuming "proxy" from package.json to proxy API requests in watch mode

  • #1671 8d3bd42 Thanks @rschristian! - Any environment variables prefixed with 'PREACT_APP_' will automatically be available for reference and use in your application without having to configure DefinePlugin any more. Furthermore, if a .env file exists in the root of your application, any variables it defines will automatically be available for use.

    Huge shout out to robinvdvleuten who provided this functionality through the preact-cli-plugin-env-vars package in the past.

Patch Changes

[email protected]

2 years ago

Patch Changes