Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renamed template files to support syntax highlightning #389

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/app-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ var AppCache = (function () {
key: 'getPageContent',
value: function getPageContent() {
if (this.events) {
return _fs2['default'].readFileSync(_path2['default'].join(__dirname, '../tpls/appcache-frame.tpl'), 'utf-8');
return _fs2['default'].readFileSync(_path2['default'].join(__dirname, '../tpls/appcache-frame.html'), 'utf-8');
} else {
return '';
}
Expand Down
2 changes: 1 addition & 1 deletion lib/default-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ exports['default'] = {

ServiceWorker: {
output: 'sw.js',
entry: _path2['default'].join(__dirname, '../tpls/empty-entry.js'),
entry: _path2['default'].join(__dirname, '../tpls/empty-entry.ejs'),
scope: null,
events: false,
minify: null,
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ var OfflinePlugin = (function () {
};

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

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

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

this.addDependency(templatePath);

Expand Down
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
File renamed without changes.
File renamed without changes.
File renamed without changes.