Skip to content

Commit

Permalink
fix: use maplibre-gl dev binary
Browse files Browse the repository at this point in the history
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
  • Loading branch information
vinayakkulkarni committed Aug 2, 2023
1 parent 2dab55b commit 0761198
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const app: NuxtConfig['app'] = {
const components: NuxtConfig['components'] = false;

const css: NuxtConfig['css'] = [
'maplibre-gl/dist/maplibre-gl.css',
// 'maplibre-gl/dist/maplibre-gl.css',
'~/assets/css/global.css',
'~/assets/css/fonts.css',
];
Expand All @@ -25,7 +25,10 @@ const experimental: NuxtConfig['experimental'] = {
};

const nitro: NuxtConfig['nitro'] = {
preset: 'netlify',
preset: process.env.NODE_ENV === 'production' ? 'netlify' : 'static',
future: {
nativeSWR: true,
},
prerender: {
crawlLinks: true,
},
Expand Down Expand Up @@ -63,15 +66,11 @@ const typescript: NuxtConfig['typescript'] = {
};

const vite: NuxtConfig['vite'] = {
optimizeDeps: {
include: ['terra-draw', 'maplibre-gl'],
},
build: {
rollupOptions: {
external: ['terra-draw', 'maplibre-gl'],
},
commonjsOptions: {
include: [/maplibre-gl/, /terra-draw/, /node_modules/],
resolve: {
alias: {
'maplibre-gl': 'node_modules/maplibre-gl/dist/maplibre-gl-dev.js',
'terra-draw':
'https://unpkg.com/terra-draw@0.0.1-alpha.44/dist/terra-draw.modern.js',
},
},
};
Expand Down

0 comments on commit 0761198

Please sign in to comment.