Skip to content

Commit 75c7602

Browse files
committed
🧑‍💻 Enable client-side source maps
1 parent f9b8f4c commit 75c7602

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Assets/nuxt.base.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,18 @@ export default (subSite: string): Partial<NuxtConfig> => {
5050
],
5151
build: {
5252
optimizeCSS: true,
53-
extend (c) {
53+
extend (c, { isClient }) {
5454
c.resolve!.alias!["@s-sass"] = path.join(__dirname, "../Assets/sass");
5555
c.resolve!.alias!["../../Assets/components"] = path.join(__dirname, "../Assets/components");
56+
57+
if (isClient) {
58+
c.devtool = "source-map";
59+
}
5660
},
5761
},
62+
terser: {
63+
sourceMap: true,
64+
},
5865
dir: {
5966
static: "../Assets/static",
6067
},

0 commit comments

Comments
 (0)