-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvue.config.js
More file actions
33 lines (31 loc) · 819 Bytes
/
Copy pathvue.config.js
File metadata and controls
33 lines (31 loc) · 819 Bytes
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
const path = require('path');
const PrerenderSPAPlugin = require('prerender-spa-plugin');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const webpack = require('webpack');
module.exports = {
"transpileDependencies": [
"vuetify"
],
devServer: {
https: true
},
configureWebpack: {
devServer: {
host: 'digester.local',
disableHostCheck: true,
headers: {
'X-Content-Type-Options': 'nosniff'
}
},
plugins: [
new PrerenderSPAPlugin({
staticDir: path.join(__dirname, 'dist'),
routes: ['/']
}),
// ignore locales from moment to reduce size
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
// enable for bundle size analysis
// new BundleAnalyzerPlugin(),
]
}
}