@@ -26,8 +26,8 @@ export function createPackageBuildTasks(packageName: string, requiredPackages: s
26
26
// Paths to the different output files and directories.
27
27
const esmMainFile = join ( packageOut , 'index.js' ) ;
28
28
29
- // Glob that matches all assets that should be copied to the package.
30
- const assetsGlob = join ( packageRoot , '**/*.+(scss|css)' ) ;
29
+ // Glob that matches all style files that need to be copied to the package output .
30
+ const stylesGlob = join ( packageRoot , '**/*.+(scss|css)' ) ;
31
31
32
32
// Glob that matches every HTML file in the current package.
33
33
const htmlGlob = join ( packageRoot , '**/*.html' ) ;
@@ -75,11 +75,11 @@ export function createPackageBuildTasks(packageName: string, requiredPackages: s
75
75
* Asset tasks. Building SASS files and inlining CSS, HTML files into the ESM output.
76
76
*/
77
77
task ( `${ packageName } :assets` , [
78
- `${ packageName } :assets:scss` , `${ packageName } :assets:copy` , `${ packageName } :assets:html`
78
+ `${ packageName } :assets:scss` , `${ packageName } :assets:copy-styles ` , `${ packageName } :assets:html`
79
79
] ) ;
80
80
81
81
task ( `${ packageName } :assets:scss` , sassBuildTask ( packageOut , packageRoot , true ) ) ;
82
- task ( `${ packageName } :assets:copy` , copyTask ( assetsGlob , packageOut ) ) ;
82
+ task ( `${ packageName } :assets:copy-styles ` , copyTask ( stylesGlob , packageOut ) ) ;
83
83
task ( `${ packageName } :assets:html` , ( ) => {
84
84
return src ( htmlGlob ) . pipe ( htmlmin ( HTML_MINIFIER_OPTIONS ) ) . pipe ( dest ( packageOut ) ) ;
85
85
} ) ;
0 commit comments