mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: fix dev-app deployment to firebase (#14529)
This commit is contained in:
committed by
Jeremy Elbourn
parent
9e05af3aa4
commit
48b9da3b44
+1
-1
@@ -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))",
|
||||
|
||||
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user