Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@loadable/webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loadable/webpack-plugin - npm Package Compare versions

Comparing version 5.4.0 to 5.5.0

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [5.5.0](https://github.com/smooth-code/loadable-components/compare/v5.4.0...v5.5.0) (2019-01-22)
**Note:** Version bump only for package @loadable/webpack-plugin
# [5.4.0](https://github.com/smooth-code/loadable-components/compare/v5.3.0...v5.4.0) (2019-01-17)

@@ -8,0 +16,0 @@

4

package.json
{
"name": "@loadable/webpack-plugin",
"description": "Webpack plugin for loadable (required for SSR).",
"version": "5.4.0",
"version": "5.5.0",
"main": "lib/index.js",

@@ -26,3 +26,3 @@ "repository": "git@github.com:smooth-code/loadable-components.git",

},
"gitHead": "c94b4fa1d100e16c59d5e6705e3b990351737095"
"gitHead": "c23946470fe497b4ca2d2cf49bf97d72d6ca1b11"
}
# @loadable/webpack-plugin
This plugin is required only if you use Server Side Rendering in your application. [See `@loadable/server` for more information](https://github.com/smooth-code/loadable-components/tree/master/packages/server).
This plugin is required only if you use Server Side Rendering in your application. [See `@loadable/server` for more information](https://www.smooth-code.com/open-source/loadable-components/docs/api-loadable-server/).

@@ -11,35 +11,8 @@ ## Install

## Usage
## Documentation
**webpack.config.js**
👉 [See full documentation](https://www.smooth-code.com/open-source/loadable-components/)
```js
const LoadablePlugin = require('@loadable/webpack-plugin')
module.exports = {
plugins: [new LoadablePlugin()],
}
```
## API
### LoadablePlugin
Create a webpack loadable plugin.
| Arguments | Description |
| ------------------------------ | ----------------------------------------------------------------------------------- |
| `options` | Optional options |
| `options.filename` | Stats filename (default to `loadable-stats.json`) |
| `options.writeToDisk` | Accepts `boolean` or `object`. Always write stats file to disk. Default to `false`. |
| `options.writeToDisk.filename` | Write assets to disk at given `filename` location |
```js
new LoadablePlugin({ filename: 'stats.json', writeToDisk: true })
```
> Writing file to disk can be useful if you are using `razzle` or `webpack-dev-server`.
## License
MIT
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc