Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Unexpected token with custom tmpl file #132

Closed
ihsansatriawan opened this issue Jun 16, 2016 · 1 comment
Closed

Unexpected token with custom tmpl file #132

ihsansatriawan opened this issue Jun 16, 2016 · 1 comment

Comments

@ihsansatriawan
Copy link

Hi,

I want to use templateFilePath to target my modify service-worker.tmpl, i have tried write in config
templateFilePath: _.template(require('./src/browser/service-worker-modify.tmpl')) but it's throw error Unexpected token for <% if (handleFetch && swToolboxCode) { %>, how can i solved this ? thx

@jeffposnick
Copy link
Contributor

The templateFilePath is intended to be a path to a file, not the contents of the file.

With your custom path, try the following:

templateFilePath: './src/browser/service-worker-modify.tmpl'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants