magellan/poi.config.js

30 lines
609 B
JavaScript
Raw Normal View History

2019-03-24 19:47:58 +00:00
const path = require('path');
const pkg = require('./package');
module.exports = {
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
})
],
output: {
publicUrl: '/magellan',
}
};