keanu-weblite/vue.config.js

33 lines
602 B
JavaScript
Raw Normal View History

2021-09-25 09:29:05 +02:00
const CopyWebpackPlugin = require('copy-webpack-plugin')
2020-11-09 10:26:56 +01:00
module.exports = {
"transpileDependencies": [
"vuetify"
2020-11-09 17:07:32 +01:00
],
publicPath: process.env.NODE_ENV === 'production'
? './'
: './',
2021-05-19 13:22:28 +02:00
chainWebpack: config => {
config.plugin('html').tap(args => {
var c = require("./src/assets/config.json");
args[0].title = c.appName;
return args;
})
},
2021-06-29 14:25:57 +02:00
configureWebpack: {
2021-09-25 09:29:05 +02:00
devtool: 'source-map',
plugins: [
new CopyWebpackPlugin([{
from: "./src/assets/config.json",
to: "./",
}])
]
2021-06-29 14:25:57 +02:00
},
2021-05-19 13:22:28 +02:00
devServer: {
//https: true
},
2020-11-09 10:26:56 +01:00
}