A webpack plugin for generating a Html5 Manifest Appcache file.
Using npm:
npm install html5-manifest-webpack-plugin --save-dev
Make your webpack.config.js
file like:
const ManifestWebpackPlugin = require('html5-manifest-webpack-plugin');
const options = {
// ...
};
module.exports = {
...
plugins: [
new ManifestWebpackPlugin(options)
]
...
};
When using webpack chain you may make your webpack.config.js
file like this
...
const ManifestWebpackPlugin = require("html5-manifest-webpack-plugin");
module.exports = {
...
configureWebpack: config => {
...
config.plugins.push(new ManifestWebpackPlugin());
},
...
};