Skip to content

Commit dbfaf76

Browse files
committed
bugfix(webpack) fixed template syntax error && forced upgrade to webpack@2.1.0-beta.12 for lots of awesome enhancements
1 parent fda7743 commit dbfaf76

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

addon/ng2/blueprints/ng2/files/__path__/index.html

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,16 @@
1313
{{#each mobile.icons}}
1414
<link rel="{{rel}}" {{#if sizes}}sizes="{{sizes}}" {{/if}}href="{{href}}">
1515
{{/each}}
16-
16+
{{#if environment.production}}
17+
<script type="text/javascript">
18+
if ('serviceWorker' in navigator) {
19+
navigator.serviceWorker.register('/worker.js').catch(function(err) {
20+
console.log('Error installing service worker: ', err);
21+
});
22+
}
23+
</script>
24+
{{/if}}
25+
<% } %>
1726
</head>
1827
<body>
1928
<<%= htmlComponentName %>-app>Loading...</<%= htmlComponentName %>-app>

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"ts-loader": "^0.8.2",
6565
"typescript": "^1.9.0-dev.20160606-1.0",
6666
"typings": "^0.8.1",
67-
"webpack": "^2.1.0-beta.8"
67+
"webpack": "2.1.0-beta.12"
6868
},
6969
"ember-addon": {
7070
"paths": [

0 commit comments

Comments
 (0)