learn_nuxt/packages/3-baseconfig/nuxt.config.ts

23 lines
513 B
TypeScript
Raw Normal View History

2023-05-04 15:42:44 +08:00
// https://nuxt.com/docs/api/configuration/nuxt-config
import { fileURLToPath } from "node:url";
export default defineNuxtConfig({
srcDir: "src",
devServer: {
port: 3000,
host: "0.0.0.0"
},
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: '@import "@/style/index.scss";',
},
},
},
},
alias: {
"@": fileURLToPath(new URL("./src/", import.meta.url)),
},
})