diff options
| author | Zephyrrus <[email protected]> | 2020-07-02 02:48:48 +0300 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2020-07-02 02:48:48 +0300 |
| commit | 1576a67bc639da55dda7b78b4e2133d2c6e8b959 (patch) | |
| tree | dd830587fdaa2c20e177bafc644bcf4fc720a120 | |
| parent | feat: move toolbar into a level and add slot for pagination on grid (diff) | |
| download | host.fuwn.me-1576a67bc639da55dda7b78b4e2133d2c6e8b959.tar.xz host.fuwn.me-1576a67bc639da55dda7b78b4e2133d2c6e8b959.zip | |
chore: change nuxt.config to generate proper source-maps for vscode debugging
| -rw-r--r-- | nuxt.config.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/nuxt.config.js b/nuxt.config.js index ac501d0..a45c7f1 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -31,7 +31,11 @@ export default { { hid: 'theme-color', name: 'theme-color', content: `${process.env.META_THEME_COLOR}` }, { hid: 'description', name: 'description', content: `${process.env.META_DESCRIPTION}` }, { hid: 'keywords', name: 'keywords', content: `${process.env.META_KEYWORDS}` }, - { hid: 'apple-mobile-web-app-title', name: 'apple-mobile-web-app-title', content: `${process.env.SERVICE_NAME}` }, + { + hid: 'apple-mobile-web-app-title', + name: 'apple-mobile-web-app-title', + content: `${process.env.SERVICE_NAME}` + }, { hid: 'application-name', name: 'application-name', content: `${process.env.SERVICE_NAME}` }, // { hid: 'msapplication-config', name: 'msapplication-config', content: `${process.env.DOMAIN}/browserconfig.xml` }, { hid: 'twitter:card', name: 'twitter:card', content: 'summary_large_image' }, @@ -66,10 +70,7 @@ export default { '~/plugins/nuxt-client-init' ], css: [], - modules: [ - '@nuxtjs/axios', - 'cookie-universal-nuxt' - ], + modules: ['@nuxtjs/axios', 'cookie-universal-nuxt'], axios: { baseURL: `${process.env.DOMAIN}${process.env.ROUTE_PREFIX}` }, @@ -80,11 +81,14 @@ export default { autoprefixer } }, - extend(config, { isClient }) { + extend(config, { isClient, isDev }) { // Extend only webpack config for client-bundle if (isClient) { jetpack.write('dist/config.json', clientConfig); } + if (isDev) { + config.devtool = isClient ? 'source-map' : 'inline-source-map'; + } } } }; |