Skip to content

Commit

Permalink
Fixing build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JStumpp committed Nov 30, 2020
1 parent 0b1ce66 commit af29c07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
{ text: 'AI Newsletter', link: 'https://i.am.ai/newsletter', target:'_self' },
]
},
patterns: process.env.EXPORT_PDF ? ['readme.md'] : ['**/*.md', '**/*.vue'],
patterns: process.env.EXPORT_PDF === 'True' ? ['**/*.md', '!.md'] : ['**/*.md', '**/*.vue'],
plugins: ['@snowdog/vuepress-plugin-pdf-export', {
puppeteerLaunchOptions: {
args: ['--no-sandbox', '--disable-setuid-sandbox']
Expand All @@ -48,21 +48,21 @@ module.exports = {
},*/

head: [
...(!process.env.EXPORT_PDF ? ['script', {
...(process.env.EXPORT_PDF !== 'True' ? ['script', {
src: 'https://config.metomic.io/config.js?id=prj:c5c07948-cf96-4555-99ec-3a9bf5ae16ce',
crossorigin: 'anonymous',
charset: 'utf-8'
}] : []),
...(!process.env.EXPORT_PDF ? ['script', {
...(process.env.EXPORT_PDF !== 'True' ? ['script', {
src: 'https://consent-manager.metomic.io/embed.js',
crossorigin: 'anonymous',
charset: 'utf-8'
}] : []),
...(!process.env.EXPORT_PDF ? ['script', {
...(process.env.EXPORT_PDF !== 'True' ? ['script', {
async: true,
src: 'https://www.googletagmanager.com/gtag/js?id=UA-131730139-2'
}] : []),
...(!process.env.EXPORT_PDF ? ['script', {}, `
...(process.env.EXPORT_PDF !== 'True' ? ['script', {}, `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
Expand Down

0 comments on commit af29c07

Please sign in to comment.