2020-05-27 19:34:29 +00:00
|
|
|
const path = require('path');
|
|
|
|
|
2020-08-24 00:00:26 +00:00
|
|
|
const config = require('./config');
|
2020-05-28 08:26:36 +00:00
|
|
|
|
2020-08-24 00:00:26 +00:00
|
|
|
const configFile = 'public/config.json';
|
|
|
|
const appConfig = config.get(configFile);
|
|
|
|
console.log(appConfig);
|
|
|
|
config.save(appConfig, configFile);
|
2020-05-28 08:26:36 +00:00
|
|
|
|
2020-08-27 01:51:55 +00:00
|
|
|
const pkgVersion = require('./package.json').version;
|
|
|
|
|
|
|
|
process.env.VUE_APP_VERSION = process.env.VERSION || pkgVersion;
|
2020-06-10 05:14:51 +00:00
|
|
|
|
2020-05-25 22:12:22 +00:00
|
|
|
module.exports = {
|
2020-07-27 23:31:04 +00:00
|
|
|
// Relative publicPath to support subfolders
|
|
|
|
publicPath: '',
|
2020-05-27 18:41:08 +00:00
|
|
|
transpileDependencies: ['vuetify'],
|
2020-08-06 18:42:00 +00:00
|
|
|
integrity: true,
|
2020-05-26 00:33:24 +00:00
|
|
|
configureWebpack: {
|
2020-05-27 19:34:29 +00:00
|
|
|
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-08 04:58:10 +00:00
|
|
|
|
2020-08-06 20:27:40 +00:00
|
|
|
pluginOptions: {
|
|
|
|
lintStyleOnBuild: true,
|
|
|
|
stylelint: {},
|
|
|
|
},
|
2020-06-08 04:58:10 +00:00
|
|
|
|
2020-09-05 22:57:37 +00:00
|
|
|
// devServer: {
|
|
|
|
// disableHostCheck: true,
|
|
|
|
// },
|
2020-07-24 20:08:33 +00:00
|
|
|
|
2020-08-05 01:59:32 +00:00
|
|
|
// https://github.com/vuejs/vue-cli/issues/3771
|
2020-06-08 04:59:42 +00:00
|
|
|
css: {
|
|
|
|
extract: process.env.NODE_ENV === 'production' ? {
|
|
|
|
ignoreOrder: true,
|
|
|
|
} : false,
|
|
|
|
},
|
2020-08-27 02:37:26 +00:00
|
|
|
|
|
|
|
chainWebpack: (conf) => {
|
|
|
|
conf
|
|
|
|
.plugin('html')
|
|
|
|
.tap((args) => {
|
|
|
|
// eslint-disable-next-line no-param-reassign
|
|
|
|
args[0].title = 'SyncLounge';
|
|
|
|
return args;
|
|
|
|
});
|
|
|
|
},
|
2020-05-25 22:12:22 +00:00
|
|
|
};
|