E
E
Emil Farvaev2017-02-17 01:43:01
HTML
Emil Farvaev, 2017-02-17 01:43:01

How to load html template into js script using Gulp?

Hello.
Knowledgeable people, please tell me how to implement such functionality when building a project using Gulp:
Before building (arbitrary js-file)

...
var template = require("template.html");
...

After Assembly
...
var template = "<p>Some information</p>"; // разметка из template.html
...

Thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question