Skip to content

Commit

Permalink
renamed template files to support syntax highlightning
Browse files Browse the repository at this point in the history
  • Loading branch information
mojoaxel committed Jun 5, 2018
1 parent 962f90d commit af1c179
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 401 deletions.
2 changes: 1 addition & 1 deletion src/app-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default class AppCache {

getPageContent() {
if (this.events) {
return fs.readFileSync(path.join(__dirname, '../tpls/appcache-frame.tpl'), 'utf-8');
return fs.readFileSync(path.join(__dirname, '../tpls/appcache-frame.html'), 'utf-8');
} else {
return '';
}
Expand Down
2 changes: 1 addition & 1 deletion src/default-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default {

ServiceWorker: {
output: 'sw.js',
entry: path.join(__dirname, '../tpls/empty-entry.js'),
entry: path.join(__dirname, '../tpls/empty-entry.ejs'),
scope: null,
events: false,
minify: null,
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export default class OfflinePlugin {
};

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

if (compilation.fileDependencies.indexOf) {
Expand Down
2 changes: 1 addition & 1 deletion src/misc/runtime-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports.pitch = function(remainingRequest, precedingRequest, data) {

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

this.addDependency(templatePath);

Expand Down
152 changes: 0 additions & 152 deletions tpls/appcache-frame.tpl

This file was deleted.

Empty file removed tpls/empty-entry.js
Empty file.
Loading

0 comments on commit af1c179

Please sign in to comment.