aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-03-12 14:47:47 +0100
committercodecalm <codecalm@gmail.com>2020-03-12 14:47:47 +0100
commit9c273624f50eb4a2a462d02d0653058767e88c57 (patch)
treedc2c7bb2d78ee0609f1c93dd2b03f04959819ac9
parentdir fixes (diff)
downloadtabler-icons-9c273624f50eb4a2a462d02d0653058767e88c57.tar.xz
gulp fixes
-rw-r--r--gulpfile.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 133c51b..f48368e 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -11,13 +11,11 @@ const createScreenshot = async (filePath) => {
try {
filePath = path.join(__dirname, filePath);
- const fileName = path.basename(filePath, path.extname(filePath));
+ const fileName = filePath.replace('.svg', '');
const htmlFilePath = path.join("file:", filePath);
const browser = await puppeteer.launch();
const page = await browser.newPage();
- console.log('htmlFilePath', htmlFilePath);
-
await page.setViewport({
height: 100,
width: 100
@@ -60,7 +58,7 @@ gulp.task('icons-sprite', function (cb) {
let svg = `<svg xmlns="http://www.w3.org/2000/svg"><defs>${svgContent}</defs></svg>`;
- fs.writeFileSync('.github/tabler-sprite.svg', svg);
+ fs.writeFileSync('dist/tabler-sprite.svg', svg);
cb();
});
});