monitoring-server/views/poi.config.js
2022-11-12 18:29:28 +01:00

25 lines
586 B
JavaScript

const path = require("path");
const pkg = require("../package");
module.exports = {
transformModules: ["asn1.js"],
entry: ["src/polyfills.js", "src/index.js"],
html: {
title: pkg.productName,
description: pkg.description,
template: path.join(__dirname, "index.ejs")
},
postcss: {
plugins: [
// Your postcss plugins
]
},
presets: [
require("poi-preset-bundle-report")(),
require("poi-preset-offline")({
pwa: "./src/pwa.js", // Path to pwa runtime entry
pluginOptions: {} // Additional options for offline-plugin
})
]
};