Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit f82f742

Browse files
committed
add \n to google fonts import
1 parent b0e6993 commit f82f742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ module.exports = (api, opts, rootOpts) => {
160160
const lines = content.split(/\r?\n/g).reverse()
161161

162162
const lastLink = lines.findIndex(line => line.match(/^\s*<link/))
163-
lines[lastLink] += '<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons" rel="stylesheet">'
163+
lines[lastLink] += '\n<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons" rel="stylesheet">'
164164

165165
content = lines.reverse().join('\n')
166166
fs.writeFileSync(indexPath, content, { encoding: 'utf8' })

0 commit comments

Comments
 (0)