-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathvue.config.js
34 lines (33 loc) · 1004 Bytes
/
vue.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
const IgnoreNotFoundExportPlugin = require('ignore-not-found-export-webpack-plugin');
const MonacoEditorPlugin = require('monaco-editor-webpack-plugin');
const manifestJSON = require('./public/manifest.json');
module.exports = {
chainWebpack: (config) => {
config.module
.rule('raw')
.test(/\.txt$/)
.use('raw-loader')
.loader('raw-loader')
.end();
},
configureWebpack: {
plugins: [
new IgnoreNotFoundExportPlugin({ include: /FeathersVuexPagination/ }),
new MonacoEditorPlugin({
// https://github.com/Microsoft/monaco-editor-webpack-plugin#options
languages: ['cpp', 'markdown'],
}),
],
},
pwa: {
themeColor: manifestJSON.theme_color,
name: manifestJSON.short_name,
msTileColor: manifestJSON.background_color,
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: 'black',
workboxPluginMode: 'InjectManifest',
workboxOptions: {
swSrc: 'service-worker.js',
},
},
};