ffc/vue.config.js

27 lines
633 B
JavaScript
Raw Permalink Normal View History

const ASSET_PATH = process.env.ASSET_PATH || '/ffc/';
2020-05-23 17:42:35 +00:00
module.exports = {
publicPath: ASSET_PATH,
2020-06-26 01:12:06 +00:00
transpileDependencies: ["vuetify"],
pwa: {
themeColor: "#363636",
msTileColor: "#3F51B5",
manifestOptions: {
name: "Fancy Flashcard",
short_name: "Fancy Flashcard",
2020-06-26 01:12:06 +00:00
},
},
chainWebpack: (config) => {
config.plugin("html").tap((args) => {
args[0].title = "Fancy Flashcard";
return args;
});
config.plugin("define").tap((args) => {
args[0]["process.env"]["VERSION"] = JSON.stringify(
require("./package.json").version
);
return args;
});
},
2020-06-26 01:12:06 +00:00
};