https://github.com/nimacsoft/razzle-plugin-manifest
🍕 Razzle plugin to Export Chunks Path from Webpack
https://github.com/nimacsoft/razzle-plugin-manifest
plugin razzle webpack
Last synced: about 1 year ago
JSON representation
🍕 Razzle plugin to Export Chunks Path from Webpack
- Host: GitHub
- URL: https://github.com/nimacsoft/razzle-plugin-manifest
- Owner: nimacsoft
- License: mit
- Created: 2019-06-13T12:59:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-09T12:41:44.000Z (over 6 years ago)
- Last Synced: 2025-04-30T13:30:09.568Z (about 1 year ago)
- Topics: plugin, razzle, webpack
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://badge.fury.io/js/razzle-plugin-manifest)
# razzle-plugin-manifest
This package contains a plugin to group route level chunk files with Razzle
## Output
```javascript
{
"ChunkName": {
"css": [
"path/to/chunk.css"
],
"js": [
"path/to/chunk.js"
]
},
"OtherChunk": {
"css": [
"path/to/OtherChunk.css"
],
"js": [
"path/to/OtherChunk.js"
]
},
"client": {
"css": [
"path/to/bundle.css"
],
"js": [
"path/to/client.js"
]
}
}
```
Usage in Razzle Projects
```sh
yarn add razzle-plugin-manifest --dev
```
create a **razzle.config.js** file in root directory of project (next to the _package.json_) and put this content inside it
Using the plugin with the default options
```javascript
// razzle.config.js
module.exports = {
plugins: ["manifest"]
};
```
## With custom options:
```javascript
// razzle.config.js
module.exports = {
plugins: [
{
name: "manifest",
options: {
filePath: "./../manifest"
}
}
]
};
```
## Options
filePath: _boolean_ (defaults: ./../manifest)
Change `filePath` if you want razzle change output filename and directory.