![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@storybook/builder-webpack4
Advanced tools
The @storybook/builder-webpack4 npm package is a custom builder for Storybook that allows you to use Webpack 4 as your bundler for building stories. This is particularly useful for projects that are still using Webpack 4 and have not yet migrated to Webpack 5, which is used by default in the latest versions of Storybook. The package provides a set of configurations and optimizations tailored for Webpack 4 to ensure compatibility and performance when running Storybook.
Custom Webpack Configuration
Allows you to customize the Webpack configuration used by Storybook by modifying the existing config or returning a new one.
{"webpackFinal": (config) => {\n // Modify or return the webpack config.\n return config;\n}}
Storybook Addon Compatibility
Ensures compatibility with various Storybook addons while using Webpack 4 as the bundler.
{"addons": [\n '@storybook/addon-actions',\n '@storybook/addon-links',\n '@storybook/addon-essentials'\n]}
Performance Optimizations
Provides performance optimizations specific to Webpack 4 for faster build and reload times in Storybook.
{"core": {\n "builder": '@storybook/builder-webpack4'\n}}
This package is the default builder for Storybook that uses Webpack 5. It is similar to @storybook/builder-webpack4 but for projects that are using the newer version of Webpack. It offers better performance and newer features compared to Webpack 4.
An alternative Storybook builder that uses Vite as the bundler instead of Webpack. Vite provides a faster development experience with features like Hot Module Replacement (HMR) and efficient bundling. It is a good choice for projects looking for performance improvements over Webpack.
Builder implemented with webpack4
and webpack4
-compatible loaders/plugins/config, used by @storybook/core-server
to build the preview iframe.
builder-webpack4
is the default, so no configuration is necessary to use it. However, if you wan to explicitly configure your Storybook to run builder-webpack4
, install it as a dev dependency and then update your .storybook/main.js
configuration.
module.exports = {
core: {
builder: 'webpack4',
},
};
FAQs
Storybook framework-agnostic API
The npm package @storybook/builder-webpack4 receives a total of 579,061 weekly downloads. As such, @storybook/builder-webpack4 popularity was classified as popular.
We found that @storybook/builder-webpack4 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.