Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit b847eef

Browse files
fix: copy tasks for Stencil v2
1 parent c716697 commit b847eef

File tree

3 files changed

+25
-27
lines changed

3 files changed

+25
-27
lines changed

docs/stencil.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const config: Config = {
1010
type: 'www',
1111
baseUrl: 'https://docs.deckdeckgo.com',
1212
prerenderConfig: './prerender.config.ts',
13+
copy: [{src: 'robots.txt'}],
1314
},
1415
],
1516
globalScript: 'src/global/app.ts',
@@ -24,5 +25,4 @@ export const config: Config = {
2425
devServer: {
2526
openBrowser: false,
2627
},
27-
copy: [{src: 'robots.txt'}],
2828
};

remote/stencil.config.ts

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,31 @@ let globalScript: string = 'src/global/app.ts';
1313
// @ts-ignore
1414
const dev: boolean = process.argv && process.argv.indexOf('--local') > -1;
1515
if (dev) {
16-
globalScript = 'src/global/app-local.ts';
16+
globalScript = 'src/global/app-local.ts';
1717
}
1818

1919
export const config: Config = {
20-
outputTargets: [
21-
{
22-
type: 'www',
23-
baseUrl: 'https://deckdeckgo.app'
24-
}
25-
],
26-
globalScript: globalScript,
27-
globalStyle: 'src/global/app.scss',
28-
plugins: [
29-
sass({
30-
includePaths: ['node_modules/@deckdeckgo/deck-utils/styles/']
31-
}),
32-
postcss({
33-
plugins: [autoprefixer()]
34-
}),
35-
builtins()
36-
],
37-
nodeResolve: { browser: true },
38-
devServer: {
39-
openBrowser: false,
40-
port: 3334
20+
outputTargets: [
21+
{
22+
type: 'www',
23+
baseUrl: 'https://deckdeckgo.app',
24+
copy: [{src: 'robots.txt'}],
4125
},
42-
copy: [
43-
{ src: 'robots.txt' }
44-
]
26+
],
27+
globalScript: globalScript,
28+
globalStyle: 'src/global/app.scss',
29+
plugins: [
30+
sass({
31+
includePaths: ['node_modules/@deckdeckgo/deck-utils/styles/'],
32+
}),
33+
postcss({
34+
plugins: [autoprefixer()],
35+
}),
36+
builtins(),
37+
],
38+
nodeResolve: {browser: true},
39+
devServer: {
40+
openBrowser: false,
41+
port: 3334,
42+
},
4543
};

studio/stencil.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const config: Config = {
2727
serviceWorker: {
2828
swSrc: 'src/sw.js',
2929
},
30+
copy: [{src: 'robots.txt'}, {src: `${assetLinks}`, dest: `.well-known/assetlinks.json`}],
3031
},
3132
],
3233
globalScript: globalScript,
@@ -49,5 +50,4 @@ export const config: Config = {
4950
openBrowser: false,
5051
reloadStrategy: 'pageReload',
5152
},
52-
copy: [{src: 'robots.txt'}, {src: `${assetLinks}`, dest: `.well-known/assetlinks.json`}],
5353
};

0 commit comments

Comments
 (0)