Skip to content

Commit

Permalink
fix: copy tasks for Stencil v2
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Sep 6, 2020
1 parent c716697 commit b847eef
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 27 deletions.
2 changes: 1 addition & 1 deletion docs/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -24,5 +25,4 @@ export const config: Config = {
devServer: {
openBrowser: false,
},
copy: [{src: 'robots.txt'}],
};
48 changes: 23 additions & 25 deletions remote/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};
2 changes: 1 addition & 1 deletion studio/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -49,5 +50,4 @@ export const config: Config = {
openBrowser: false,
reloadStrategy: 'pageReload',
},
copy: [{src: 'robots.txt'}, {src: `${assetLinks}`, dest: `.well-known/assetlinks.json`}],
};

0 comments on commit b847eef

Please sign in to comment.