-
Notifications
You must be signed in to change notification settings - Fork 1
/
vue.config.js
83 lines (75 loc) · 1.93 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// const path = require('path');
const ansiRegex = require('ansi-regex');
// const PrerenderSPAPlugin = require('prerender-spa-plugin');
// const PuppeteerRenderer = PrerenderSPAPlugin.PuppeteerRenderer;
// const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
// .BundleAnalyzerPlugin;
module.exports = {
chainWebpack: (config) => {
config.module.rules.delete('eslint')
},
// configureWebpack: {
// plugins: [
// // new BundleAnalyzerPlugin(),
// new PrerenderSPAPlugin({
// staticDir: path.join(__dirname, 'dist'),
// routes: [
// '/',
// '/login/',
// '/opensource/',
// '/privacy-policy/',
// '/delete-account/',
// ],
// renderer: new PuppeteerRenderer(),
// minify: {
// caseSensitive: true,
// collapseBooleanAttributes: true,
// collapseWhitespace: true,
// collapseInlineTagWhitespace: true,
// decodeEntities: true,
// minifyCSS: true,
// keepClosingSlash: true,
// sortAttributes: true,
// removeComments: true,
// removeScriptTypeAttributes: true,
// removeStyleLinkTypeAttributes: true
// }
// })
// ]
// },
css: {
loaderOptions: {
sass: {
data: `
@import './src/style/style.scss';
`
},
},
},
devServer: {
port: 5000,
},
pwa: {
name: 'Sprinter',
themeColor: '#844DFF',
msTileColor: '#844DFF',
appleMobileWebAppStatusBarStyle: 'black-translucent',
appleMobileWebAppCapable: 'yes',
workboxPluginMode: 'InjectManifest',
workboxOptions: {
swSrc: './src/sw.js',
swDest: 'service-worker.js',
},
},
pluginOptions: {
i18n: {
locale: 'en',
fallbackLocale: 'en',
localeDir: 'locales',
enableInSFC: true
}
},
transpileDependencies: [
ansiRegex
],
}