ffc/vue.config.js
William Brawner bbefda37a9 Add Dockerfile
Signed-off-by: William Brawner <me@wbrawner.com>
2021-06-17 22:59:40 +00:00

26 lines
633 B
JavaScript

const ASSET_PATH = process.env.ASSET_PATH || '/ffc/';
module.exports = {
publicPath: ASSET_PATH,
transpileDependencies: ["vuetify"],
pwa: {
themeColor: "#363636",
msTileColor: "#3F51B5",
manifestOptions: {
name: "Fancy Flashcard",
short_name: "Fancy Flashcard",
},
},
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;
});
},
};