build: fix dev-app deployment to firebase (#14529)

This commit is contained in:
Paul Gschwendtner
2018-12-18 05:15:41 +01:00
committed by Jeremy Elbourn
parent 9e05af3aa4
commit 48b9da3b44
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"hosting": {
"public": "dist/packages/dev-app",
"public": "dist/devapp-deploy",
"rewrites": [
{
"source": "/**/!(*.@(js|ts|html|css|json|svg|png|jpg|jpeg))",
+1
View File
@@ -85,6 +85,7 @@ task('serve:devapp', ['build:devapp'], sequenceTask([':serve:devapp', ':watch:de
task('stage-deploy:devapp', ['build:devapp'], () => {
const deployOutputDir = join(outputDir, 'devapp-deploy');
copyFiles(outDir, 'index.html', deployOutputDir);
copyFiles(outDir, '**/*.+(css|js|map)', deployOutputDir);
copyFiles(join(projectDir, 'node_modules'), vendorGlob, join(deployOutputDir, 'node_modules'));
copyFiles(bundlesDir, '*.+(js|map)', join(deployOutputDir, 'dist/bundles'));