Skip to content

build: exported scss files missing in CDK #13679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions tools/package-tools/gulp/build-tasks-gulp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ export function createPackageBuildTasks(buildPackage: BuildPackage, preBuildTask
// Name of all dependencies of the current package.
const dependencyNames = buildPackage.dependencies.map(p => p.name);

// Glob that matches all style files that need to be copied to the package output.
const stylesGlob = join(buildPackage.sourceDir, '**/*.css');
// Glob that matches all style files that need to be copied to the package output. Besides CSS
// files that will be copied (e.g. in the examples package), we copy the source SCSS files that
// start with an underscore. These files can be packaged into the release output if the
// build package `copySecondaryEntryPointStylesToRoot` option is enabled (e.g. _overlay.scss).
const styleGlobs = [
join(buildPackage.sourceDir, '**/*.css'),
join(buildPackage.sourceDir, '**/_*.scss'),
];

// Glob that matches every HTML file in the current package.
const htmlGlob = join(buildPackage.sourceDir, '**/*.html');
Expand Down Expand Up @@ -119,7 +125,7 @@ export function createPackageBuildTasks(buildPackage: BuildPackage, preBuildTask
);

task(`${taskName}:assets:copy-styles`, () => {
return src(stylesGlob)
return src(styleGlobs)
.pipe(dest(buildPackage.outputDir))
.pipe(dest(buildPackage.esm5OutputDir));
});
Expand Down