Files
raven-client/ayanova/vue.config.js
2020-10-12 21:18:12 +00:00

49 lines
1.5 KiB
JavaScript

const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
module.exports = {
//https://medium.com/@mrodal/how-to-make-lazy-loading-actually-work-in-vue-cli-3-7f3f88cfb102
chainWebpack: config => {
config.plugins.delete("prefetch");
},
configureWebpack: {
plugins: [
new MonacoWebpackPlugin({
// available options are documented at https://github.com/Microsoft/monaco-editor-webpack-plugin#options
//https://github.com/Microsoft/monaco-editor-webpack-plugin
languages: [
"javascript",
"css",
"html",
"typescript",
"json",
"handlebars"
]
})
]
},
transpileDependencies: ["vuetify"],
pwa: {
//https://cli.vuejs.org/core-plugins/pwa.html#configuration
name: "AyaNova",
themeColor: "#00205B",
workboxPluginMode: "InjectManifest",
workboxOptions: {
swSrc: "./src/sw.js",
swDest: "service-worker.js"
},
iconPaths: {
//disable automatic icons, they have the wrong ones basically, use this guide https://developers.google.com/web/fundamentals/design-and-ux/browser-customization
//and put them directly into the index.html in the public folder as it's the source one used
//and https://realfavicongenerator.net/
favicon32: null,
favicon16: null,
appleTouchIcon: null,
maskIcon: null,
msTileImage: null
}
},
productionSourceMap: false
};