Skip to content

Commit af1c179

Browse files
committed
renamed template files to support syntax highlightning
1 parent 962f90d commit af1c179

File tree

7 files changed

+4
-401
lines changed

7 files changed

+4
-401
lines changed

src/app-cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export default class AppCache {
139139

140140
getPageContent() {
141141
if (this.events) {
142-
return fs.readFileSync(path.join(__dirname, '../tpls/appcache-frame.tpl'), 'utf-8');
142+
return fs.readFileSync(path.join(__dirname, '../tpls/appcache-frame.html'), 'utf-8');
143143
} else {
144144
return '';
145145
}

src/default-options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default {
3939

4040
ServiceWorker: {
4141
output: 'sw.js',
42-
entry: path.join(__dirname, '../tpls/empty-entry.js'),
42+
entry: path.join(__dirname, '../tpls/empty-entry.ejs'),
4343
scope: null,
4444
events: false,
4545
minify: null,

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export default class OfflinePlugin {
253253
};
254254

255255
const emitFn = (compilation, callback) => {
256-
const runtimeTemplatePath = path.resolve(__dirname, '../tpls/runtime-template.js');
256+
const runtimeTemplatePath = path.resolve(__dirname, '../tpls/runtime-template.ejs');
257257
let hasRuntime = true;
258258

259259
if (compilation.fileDependencies.indexOf) {

src/misc/runtime-loader.js

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

99
const callback = this.async();
1010
const params = JSON.parse(this.query.slice(1));
11-
const templatePath = path.join(__dirname, '../../tpls/runtime-template.js');
11+
const templatePath = path.join(__dirname, '../../tpls/runtime-template.ejs');
1212

1313
this.addDependency(templatePath);
1414

tpls/appcache-frame.tpl

Lines changed: 0 additions & 152 deletions
This file was deleted.

tpls/empty-entry.js

Whitespace-only changes.

0 commit comments

Comments
 (0)