Static serving server for screenshots testing with Hermione
Using yarn:
yarn add hermione-static-server --dev
Using npm:
npm install hermione-static-server --save-dev
To configure plugin you should provide two required options: httpPort
and filesDir
.
// .hermione.conf.js
module.exports = {
// ...
plugins: {
'static-server': {
// @param {Number} — required!
httpPort: 9996,
// @param {String} — required! Path to directory with files
filesDir: './storybook-static',
}
}
}