forked from iamdin/vuetify-admin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
31 lines (29 loc) · 863 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
'use strict'
const path = require('path')
const defaultSettings = require('./src/settings.js')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
// 文件打包后 在index.html中引用的位置,与 process.env.BASE_URL相同
publicPath: process.env.BUILD_ROOT_URL || '/',
transpileDependencies: ['vuetify'],
chainWebpack: config => {
config.plugins.delete('preload')
config.plugins.delete('prefetch')
},
productionSourceMap: false,
css: {
sourceMap: false
},
configureWebpack: {
// provide the app's title in webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
name: defaultSettings.title,
resolve: {
alias: {
'@': resolve('src')
}
}
}
}