Skip to content

Commit 183dd52

Browse files
committed
updated lib folder
1 parent a0c3ca9 commit 183dd52

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/app-cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ var AppCache = (function () {
147147
key: 'getPageContent',
148148
value: function getPageContent() {
149149
if (this.events) {
150-
return _fs2['default'].readFileSync(_path2['default'].join(__dirname, '../tpls/appcache-frame.tpl'), 'utf-8');
150+
return _fs2['default'].readFileSync(_path2['default'].join(__dirname, '../tpls/appcache-frame.html'), 'utf-8');
151151
} else {
152152
return '';
153153
}

lib/default-options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ exports['default'] = {
5252

5353
ServiceWorker: {
5454
output: 'sw.js',
55-
entry: _path2['default'].join(__dirname, '../tpls/empty-entry.js'),
55+
entry: _path2['default'].join(__dirname, '../tpls/empty-entry.ejs'),
5656
scope: null,
5757
events: false,
5858
minify: null,

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ var OfflinePlugin = (function () {
252252
};
253253

254254
var emitFn = function emitFn(compilation, callback) {
255-
var runtimeTemplatePath = _path3['default'].resolve(__dirname, '../tpls/runtime-template.js');
255+
var runtimeTemplatePath = _path3['default'].resolve(__dirname, '../tpls/runtime-template.ejs');
256256
var hasRuntime = true;
257257

258258
if (compilation.fileDependencies.indexOf) {

lib/misc/runtime-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports.pitch = function (remainingRequest, precedingRequest, data) {
1010

1111
var callback = this.async();
1212
var params = JSON.parse(this.query.slice(1));
13-
var templatePath = path.join(__dirname, '../../tpls/runtime-template.js');
13+
var templatePath = path.join(__dirname, '../../tpls/runtime-template.ejs');
1414

1515
this.addDependency(templatePath);
1616

0 commit comments

Comments
 (0)