diff --git a/docs/stencil.config.ts b/docs/stencil.config.ts index aa6d6766f..2aa3fabb4 100644 --- a/docs/stencil.config.ts +++ b/docs/stencil.config.ts @@ -10,6 +10,7 @@ export const config: Config = { type: 'www', baseUrl: 'https://docs.deckdeckgo.com', prerenderConfig: './prerender.config.ts', + copy: [{src: 'robots.txt'}], }, ], globalScript: 'src/global/app.ts', @@ -24,5 +25,4 @@ export const config: Config = { devServer: { openBrowser: false, }, - copy: [{src: 'robots.txt'}], }; diff --git a/remote/stencil.config.ts b/remote/stencil.config.ts index bb3a33100..9bd62db46 100644 --- a/remote/stencil.config.ts +++ b/remote/stencil.config.ts @@ -13,33 +13,31 @@ let globalScript: string = 'src/global/app.ts'; // @ts-ignore const dev: boolean = process.argv && process.argv.indexOf('--local') > -1; if (dev) { - globalScript = 'src/global/app-local.ts'; + globalScript = 'src/global/app-local.ts'; } export const config: Config = { - outputTargets: [ - { - type: 'www', - baseUrl: 'https://deckdeckgo.app' - } - ], - globalScript: globalScript, - globalStyle: 'src/global/app.scss', - plugins: [ - sass({ - includePaths: ['node_modules/@deckdeckgo/deck-utils/styles/'] - }), - postcss({ - plugins: [autoprefixer()] - }), - builtins() - ], - nodeResolve: { browser: true }, - devServer: { - openBrowser: false, - port: 3334 + outputTargets: [ + { + type: 'www', + baseUrl: 'https://deckdeckgo.app', + copy: [{src: 'robots.txt'}], }, - copy: [ - { src: 'robots.txt' } - ] + ], + globalScript: globalScript, + globalStyle: 'src/global/app.scss', + plugins: [ + sass({ + includePaths: ['node_modules/@deckdeckgo/deck-utils/styles/'], + }), + postcss({ + plugins: [autoprefixer()], + }), + builtins(), + ], + nodeResolve: {browser: true}, + devServer: { + openBrowser: false, + port: 3334, + }, }; diff --git a/studio/stencil.config.ts b/studio/stencil.config.ts index 5848a64bf..dfccbfdb0 100644 --- a/studio/stencil.config.ts +++ b/studio/stencil.config.ts @@ -27,6 +27,7 @@ export const config: Config = { serviceWorker: { swSrc: 'src/sw.js', }, + copy: [{src: 'robots.txt'}, {src: `${assetLinks}`, dest: `.well-known/assetlinks.json`}], }, ], globalScript: globalScript, @@ -49,5 +50,4 @@ export const config: Config = { openBrowser: false, reloadStrategy: 'pageReload', }, - copy: [{src: 'robots.txt'}, {src: `${assetLinks}`, dest: `.well-known/assetlinks.json`}], };