😺 Your next Preact PWA starts in 30 seconds.
#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).
#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
05ba4b2
Thanks @rschristian! - Injects necessary Node options config into new projects if user's Node version is 16+#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.
#1756 a41d498
Thanks @rschristian! - Improves prerender error message's output and positioning
#1760 a789c9d
Thanks @rschristian!
--esm
was not enabled by default for production builds on v3.4.2--brotli
would overwrite existing assets#1749 691a4e2
Thanks @AlexanderShushunov! - Add support for avif images format
#1736 396aec8
Thanks @rschristian! - Fix for CSS assets sometimes being mistakenly labeled as 'scripts' in the push-manifest.
#1735 099876b
Thanks @rschristian! - Restricts preact.config.js
's env
types into a more idiomatic subset
#1754 227bfb7
Thanks @rschristian! - Corrects status code when there is a fatal Webpack error in production builds
#1741 82662af
Thanks @rschristian! - Fix for source maps containing incorrect paths
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.#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.
#1667 a56d904
Thanks @rschristian! - Allows users to author prerender-urls.js as ESM once again
#1693 6385ec1
Thanks @rschristian! - Bumps dependencies to latest versions where possible and applicable.
#1680 fcd0375
Thanks @rschristian! - Fixed bug in push-manifest that would result in undefined entries
#1670 7afd8bb
Thanks @rschristian! - Corrects 'build --json' ouput location and 'apple-touch-icon' will respect the publicPath automatically
#1700 a60f8df
Thanks @rschristian! - Removes the archived & non-recommended 'material' template from 'preact list' output
#1426 7d33cd1
Thanks @VanTanev! - Improves prerender error message when offending use of browser globals cannot be found
#1705 f9ef9b1
Thanks @rschristian! - Fixes HMR / --refresh
flag in watch mode
#1659 d452863
Thanks @rschristian! - Corrects push-manifest.json
generation in non-ESM builds
#1658 6af4e9d
Thanks @rschristian! - Clarifies when the --template
flag is necessary in the CLI help information.