Skip to content

Commit a4b51ed

Browse files
committed
πŸ“¦ v1.2.1
- πŸ‘¨β€πŸ’» Fix file's duplicates in generated markup
1 parent 459556f commit a4b51ed

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

β€Ž.versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ [email protected]
66
77
88
9-
9+
1010
1111
1212

β€Žmeteor.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,16 @@ module.exports = {
181181

182182
_.each(prog.manifest, (item) => {
183183
if (item.type === 'js' && item.url) {
184-
files.js.push(item.path.replace(RE.path.app, '') + '?hash=' + item.hash);
184+
const file = item.path.replace(RE.path.app, '');
185+
if (!files.js.includes(file)) {
186+
files.js.push(file + '?hash=' + item.hash);
187+
}
185188
} else if (item.type === 'css' && item.url) {
186-
// for css file cases, do not append hash.
187-
files.css.push(item.path.replace(RE.path.app, ''));
189+
const file = item.path.replace(RE.path.app, '');
190+
if (!files.css.includes(file)) {
191+
// for css file cases, do not append hash.
192+
files.css.push(file);
193+
}
188194

189195
if (item.url.includes('meteor_css_resource=true')) {
190196
primaryCSSfile = item.path.replace(RE.path.app, '');

β€Žpackage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package.describe({
22
name: 'frozeman:build-client',
33
summary: 'Placeholder package for meteor-build-client (npm). Do not install!',
4-
version: '1.2.0',
4+
version: '1.2.1',
55
git: 'https://github.com/frozeman/meteor-build-client'
66
});
77

β€Žpackage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "meteor-build-client",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "A bundles the client part of a Meteor app.",
55
"author": "Fabian Vogelsteller <[email protected]>",
66
"contributors": [

0 commit comments

Comments
Β (0)