2021-08-19 21:14:50 +02:00
|
|
|
/**
|
|
|
|
* Global config for the main Vue app. ES7 not supported here.
|
|
|
|
* See docs for all config options: https://cli.vuejs.org/config
|
|
|
|
*/
|
2021-06-23 16:34:18 +02:00
|
|
|
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
|
|
|
|
|
2021-06-22 23:28:08 +02:00
|
|
|
// Get current version
|
2021-08-20 01:36:38 +02:00
|
|
|
process.env.VUE_APP_VERSION = require('./package.json').version;
|
2021-08-19 21:14:50 +02:00
|
|
|
|
|
|
|
// Specify and export the main Vue app config
|
2021-04-17 19:42:38 +02:00
|
|
|
module.exports = {
|
2021-08-19 21:14:50 +02:00
|
|
|
publicPath: process.env.BASE_URL,
|
|
|
|
integrity: true,
|
2021-04-17 19:42:38 +02:00
|
|
|
chainWebpack: config => {
|
|
|
|
config.module.rules.delete('svg');
|
|
|
|
},
|
|
|
|
configureWebpack: {
|
2021-06-28 23:43:55 +02:00
|
|
|
performance: { hints: false },
|
2021-04-17 19:42:38 +02:00
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{ test: /.svg$/, loader: 'vue-svg-loader' },
|
|
|
|
],
|
|
|
|
},
|
2021-06-23 16:34:18 +02:00
|
|
|
plugins: [
|
2021-08-19 21:14:50 +02:00
|
|
|
// Display progress bar while building
|
2021-06-23 16:34:18 +02:00
|
|
|
new ProgressBarPlugin(),
|
|
|
|
],
|
2021-04-17 19:42:38 +02:00
|
|
|
},
|
2021-08-19 21:14:50 +02:00
|
|
|
// Specify resources for PWA / mobile support
|
2021-05-31 18:01:00 +02:00
|
|
|
pwa: {
|
|
|
|
name: 'Dashy',
|
2021-06-23 16:34:18 +02:00
|
|
|
manifestPath: './manifest.json',
|
2021-06-23 13:33:42 +02:00
|
|
|
themeColor: '#00af87',
|
2021-05-31 18:01:00 +02:00
|
|
|
msTileColor: '#0b1021',
|
2021-06-28 23:43:55 +02:00
|
|
|
mode: 'production',
|
2021-06-23 13:33:42 +02:00
|
|
|
iconPaths: {
|
|
|
|
manifestCrossorigin: 'use-credentials',
|
2021-06-23 16:34:18 +02:00
|
|
|
favicon64: './web-icons/favicon-64x64.png',
|
|
|
|
favicon32: './web-icons/favicon-32x32.png',
|
|
|
|
maskIcon: './web-icons/dashy-logo.png',
|
|
|
|
msTileImage: './web-icons/dashy-logo.png',
|
2021-06-23 13:33:42 +02:00
|
|
|
},
|
2021-05-31 18:01:00 +02:00
|
|
|
},
|
2021-08-19 21:14:50 +02:00
|
|
|
// Specify page for app entry point
|
2021-06-20 18:01:00 +02:00
|
|
|
pages: {
|
|
|
|
dashy: {
|
|
|
|
entry: 'src/main.js',
|
|
|
|
filename: 'index.html',
|
|
|
|
},
|
|
|
|
},
|
2021-04-17 19:42:38 +02:00
|
|
|
};
|