-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
44 lines (42 loc) · 1.5 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
const loaderHTML = `<div class="full-page"><div class="spinner">\
<svg viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">\
<circle class="length" fill="none" stroke-width="8" stroke-linecap="round" cx="33" cy="33" r="28"></circle>\
</svg>\
<svg viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">\
<circle fill="none" stroke-width="8" stroke-linecap="round" cx="33" cy="33" r="28"></circle>\
</svg>\
<svg viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">\
<circle fill="none" stroke-width="8" stroke-linecap="round" cx="33" cy="33" r="28"></circle>\
</svg>\
<svg viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">\
<circle fill="none" stroke-width="8" stroke-linecap="round" cx="33" cy="33" r="28"></circle>\
</svg>\
</div></div>`;
module.exports = require('webpack-boiler')({
react: true,
manifest: {
background_color: '#ffffff',
display: 'standalone',
start_url: '/dashboard',
short_name: 'vroom',
},
offline: process.env.NODE_ENV === 'development' ? false : {
ServiceWorker: {
output: 'vroom-sw.js',
events: true,
},
},
url: 'https://vroom.now.sh',
pages: [{
title: 'vroom',
favicon: './src/images/vroom-car.png',
meta: {
'theme-color': '#FA7C91',
description: 'A platform for people sleeping in their vehicles to find overnight parking',
keywords: 'vroom,rent,sleep,vehicle,overnight,parking',
},
loader: loaderHTML,
}],
googleAnalytics: 'UA-105229811-4',
});
delete module.exports.module.rules[3].include;