webpack-play-manifest
v0.1.8
Published
Creates a webpack manifest to be consumed by the PlayFramework
Downloads
2
Maintainers
Readme
webpack-play-manifest
Usage
npm install --save-dev webpack-play-manifest
Add the plugin to webpack.config.js
:
const WebpackPlayManifest = require('webpack-play-manifest');
module.exports = {
entry: {
'app': './index.js'
},
output: {
filename: '[name].bundle.js',
publicPath: '/assets/'
},
plugins: [
new WebpackPlayManifest()
]
}
Output
{
"assets": {
"index.js": {
"digest": "f5bbdff89368d5746038b869e5aa9bac",
"path": "index.bundle.js"
}
},
"entryPoints": {
"app": {
"files": [
"index.bundle.js"
]
}
},
"publicPath": "/assets/",
"version": 1
}