12 lines
348 B
JavaScript
12 lines
348 B
JavaScript
const replace = require('gulp-replace');
|
|
const { src, dest } = require('gulp');
|
|
require('dotenv/config');
|
|
|
|
// or replace multiple strings
|
|
function replaceTemplate() {
|
|
return src(['./dist/**.html'])
|
|
.pipe(replace(/FONTAWESOME_SCRIPT_URL/g, process.env.FONTAWESOME_SCRIPT_URL))
|
|
.pipe(dest('./dist/'));
|
|
};
|
|
|
|
exports.default = replaceTemplate; |