Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 6fc4747

Browse files
committed
fix(templates): prefer css templates over platform.css templates
1 parent 047d540 commit 6fc4747

6 files changed

+6
-6
lines changed

Diff for: template-generator/js/getExtensions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module.exports = `
33
function getExtensions(platform) {
44
return Object.freeze([
55
\`.\${platform}.js\`,
6-
\`.\${platform}.css\`,
76
".js",
87
".css",
8+
\`.\${platform}.css\`,
99
]);
1010
}
1111
`;

Diff for: template-generator/ng/getExtensions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ function getExtensions(platform) {
44
return Object.freeze([
55
\`.\${platform}.ts\`,
66
\`.\${platform}.js\`,
7-
\`.\${platform}.css\`,
87
".aot.ts",
98
".ts",
109
".js",
1110
".css",
11+
\`.\${platform}.css\`,
1212
]);
1313
}
1414
`;

Diff for: template-generator/ts/getExtensions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ function getExtensions(platform) {
44
return Object.freeze([
55
\`.\${platform}.ts\`,
66
\`.\${platform}.js\`,
7-
\`.\${platform}.css\`,
87
".ts",
98
".js",
109
".css",
10+
\`.\${platform}.css\`,
1111
]);
1212
}
1313
`;

Diff for: templates/webpack.config.js.js.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ function getPlugins(platform, env) {
158158
function getExtensions(platform) {
159159
return Object.freeze([
160160
`.${platform}.js`,
161-
`.${platform}.css`,
162161
".js",
163162
".css",
163+
`.${platform}.css`,
164164
]);
165165
}

Diff for: templates/webpack.config.js.ng.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ function getExtensions(platform) {
181181
return Object.freeze([
182182
`.${platform}.ts`,
183183
`.${platform}.js`,
184-
`.${platform}.css`,
185184
".aot.ts",
186185
".ts",
187186
".js",
188187
".css",
188+
`.${platform}.css`,
189189
]);
190190
}

Diff for: templates/webpack.config.js.ts.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ function getExtensions(platform) {
168168
return Object.freeze([
169169
`.${platform}.ts`,
170170
`.${platform}.js`,
171-
`.${platform}.css`,
172171
".ts",
173172
".js",
174173
".css",
174+
`.${platform}.css`,
175175
]);
176176
}

0 commit comments

Comments
 (0)