Skip to content

Commit 11aa070

Browse files
committed
.
1 parent 2beb41d commit 11aa070

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

tools/gulp/tasks/components.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,6 @@ const rollup = require('rollup').rollup;
1212
const componentsDir = path.join(SOURCE_ROOT, 'lib');
1313

1414

15-
function camelCase(str: string) {
16-
return str.replace(/-(\w)/g, (_: any, letter: string) => {
17-
return letter.toUpperCase();
18-
})
19-
}
20-
21-
22-
class ResourceInliner {
23-
constructor() {}
24-
get name() { return 'resource-inliner'; }
25-
26-
transform(source: string, id: any) {
27-
const code = inlineResources.inlineResourcesFromString(source, (url: string) => {
28-
let dir = path.dirname(id);
29-
if (url.endsWith('.html')) {
30-
dir = dir.replace(/^.*\/@angular\/material/, path.join(__dirname, '../../../src/lib'));
31-
}
32-
return path.join(dir, url);
33-
});
34-
const map = JSON.parse(readFileSync(`${id}.map`, 'utf8'));
35-
36-
return {code, map};
37-
}
38-
}
39-
40-
4115
task(':watch:components', () => {
4216
watch(path.join(componentsDir, '**/*.ts'), [':build:components:ts']);
4317
watch(path.join(componentsDir, '**/*.scss'), [':build:components:scss']);

0 commit comments

Comments
 (0)