module.exports = { // if the app is supposed to run on Github Pages in a subfolder, use the following config: // publicPath: process.env.NODE_ENV === "production" ? "/townsquare/" : "/" publicPath: process.env.NODE_ENV === "production" ? "/" : "/", chainWebpack: config => { config.module .rule("i18n") .resourceQuery(/blockType=i18n/) .type("javascript/auto") .use("i18n") .loader("@kazupon/vue-i18n-loader") .end(); } };