chore(tooling): extend from turbo config
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -19,7 +19,7 @@ export default route(function (/* { store, ssrContext } */) {
|
|||||||
? createWebHistory
|
? createWebHistory
|
||||||
: createWebHashHistory
|
: createWebHashHistory
|
||||||
|
|
||||||
const Router = createRouter({
|
return createRouter({
|
||||||
scrollBehavior: () => ({ left: 0, top: 0 }),
|
scrollBehavior: () => ({ left: 0, top: 0 }),
|
||||||
routes,
|
routes,
|
||||||
|
|
||||||
@@ -28,6 +28,4 @@ export default route(function (/* { store, ssrContext } */) {
|
|||||||
// quasar.conf.js -> build -> publicPath
|
// quasar.conf.js -> build -> publicPath
|
||||||
history: createHistory(process.env.VUE_ROUTER_BASE),
|
history: createHistory(process.env.VUE_ROUTER_BASE),
|
||||||
})
|
})
|
||||||
|
|
||||||
return Router
|
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@antfu', 'plugin:prettier/recommended'],
|
extends: ['@antfu', 'plugin:prettier/recommended', 'turbo'],
|
||||||
plugins: ['prettier'],
|
plugins: ['prettier'],
|
||||||
rules: {
|
rules: {
|
||||||
'vue/no-setup-props-destructure': 0,
|
'vue/no-setup-props-destructure': 0,
|
||||||
|
|||||||
+2
-1
@@ -29,5 +29,6 @@
|
|||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"outputs": ["dist/**"]
|
"outputs": ["dist/**"]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"globalEnv": ["VERCEL_ANALYTICS_ID", "ALGOLIA_API_KEY", "SERVER", "VUE_ROUTER_MODE", "VUE_ROUTER_BASE"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user