synclounge/vue.config.js

29 lines
689 B
JavaScript
Raw Normal View History

2020-05-27 19:34:29 +00:00
const path = require('path');
2020-05-28 08:26:36 +00:00
const { readSettings } = require('./SettingsHelper');
const settings = readSettings();
module.exports = {
2020-05-28 08:26:36 +00:00
publicPath: settings.webroot,
2020-05-27 19:34:29 +00:00
lintOnSave: process.env.NODE_ENV !== 'production',
productionSourceMap: false,
2020-05-27 18:41:08 +00:00
transpileDependencies: ['vuetify'],
2020-05-26 00:33:24 +00:00
configureWebpack: {
2020-05-27 19:34:29 +00:00
devtool: process.env.NODE_ENV === 'production' ? false : 'cheap-eval-source-map',
resolve: {
alias: {
// Alias @ to /src folder for ES/TS imports
'@': path.join(__dirname, '/src'),
},
},
2020-06-07 05:22:11 +00:00
node: false,
2020-05-27 18:41:08 +00:00
},
2020-06-03 00:07:22 +00:00
pluginOptions: {
webpackBundleAnalyzer: {
2020-06-07 05:22:11 +00:00
// openAnalyzer: false,
// analyzerMode: 'server',
2020-06-07 05:22:11 +00:00
},
},
};