Skip to content
This repository was archived by the owner on Dec 3, 2021. It is now read-only.

Commit ab966aa

Browse files
committed
v3.0.0-alpha.0
1 parent 2aa770b commit ab966aa

File tree

855 files changed

+21633
-18673
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

855 files changed

+21633
-18673
lines changed

build/svg.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env node
2+
3+
'use strict'
4+
5+
const http = require('http');
6+
const fs = require('fs');
7+
8+
const lines = fs.readFileSync('dist/index.html', 'ascii').toString().split('\n')
9+
10+
// go through the list of code lines
11+
lines.forEach((line) => {
12+
// console.log(line)
13+
const svg = line.match(/(?:data|src)=\"([^"]*svg)\"/).match(/\"nav-ivon\"/)
14+
const navIcon = line.match(/\"nav-ivon\"/)
15+
if (svg && navIcon) {
16+
const src = svg[1]
17+
console.log(src)
18+
}
19+
})
20+
21+
// <img([\w\W]+?)>
22+
23+
// fs.readFile('dist/index.html', 'utf8', function (err,data) {
24+
// if (err) {
25+
// return console.log(err);
26+
// }
27+
// // var result = data.replace(/string to be replaced/g, 'replacement');
28+
//
29+
// // fs.writeFile(someFile, result, 'utf8', function (err) {
30+
// // if (err) return console.log(err);
31+
// // });
32+
// });

nodemon.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ignoreRoot": [".git"]
3+
}

0 commit comments

Comments
 (0)