-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
22 lines (18 loc) · 685 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
const appConfig = require('./src/app.config.json');
module.exports = {
transpileDependencies: ['vuetify'],
chainWebpack(config) {
// We provide the app's title in Webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
config.set('name', appConfig.name);
// Set up all the aliases we use in our app.
config.resolve.alias.clear().merge(require('./aliases.config').webpack);
// Only enable performance hints for production builds,
// outside of tests.
config.performance.hints(process.env.NODE_ENV === 'production' && !process.env.VUE_APP_TEST && 'warning');
},
css: {
// Enable CSS source maps.
sourceMap: true,
},
};