Update for webpack-manifest-plugin

This commit is contained in:
Jeremy Benoist 2020-12-03 10:15:21 +01:00
parent 59fb0263fc
commit 92b14a3536
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 9 additions and 2 deletions

View file

@ -1,7 +1,7 @@
const webpack = require('webpack'); const webpack = require('webpack');
const { merge } = require('webpack-merge'); const { merge } = require('webpack-merge');
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const ManifestPlugin = require('webpack-manifest-plugin'); const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
const TerserPlugin = require('terser-webpack-plugin'); const TerserPlugin = require('terser-webpack-plugin');
const commonConfig = require('./common.js'); const commonConfig = require('./common.js');
@ -33,7 +33,7 @@ module.exports = merge(commonConfig, {
NODE_ENV: JSON.stringify('production'), NODE_ENV: JSON.stringify('production'),
}, },
}), }),
new ManifestPlugin({ new WebpackManifestPlugin({
fileName: 'manifest.json', fileName: 'manifest.json',
}), }),
], ],

View file

@ -1,10 +1,17 @@
{ {
"material.css": "material.css", "material.css": "material.css",
"material.js": "material.js", "material.js": "material.js",
"material.png": "img/annotator-glyph-sprite.png",
"material.css.map": "material.css.map",
"material.js.map": "material.js.map",
"baggy.css": "baggy.css", "baggy.css": "baggy.css",
"baggy.js": "baggy.js", "baggy.js": "baggy.js",
"baggy.png": "img/annotator-glyph-sprite.png",
"baggy.css.map": "baggy.css.map",
"baggy.js.map": "baggy.js.map",
"public.css": "public.css", "public.css": "public.css",
"public.js": "public.js", "public.js": "public.js",
"public.css.map": "public.css.map",
"fonts/lato-normal-italic.woff": "fonts/lato-normal-italic.woff", "fonts/lato-normal-italic.woff": "fonts/lato-normal-italic.woff",
"fonts/lato-semibold-italic.woff": "fonts/lato-semibold-italic.woff", "fonts/lato-semibold-italic.woff": "fonts/lato-semibold-italic.woff",
"fonts/lato-medium-italic.woff": "fonts/lato-medium-italic.woff", "fonts/lato-medium-italic.woff": "fonts/lato-medium-italic.woff",