0.0.0 • Published 1 year ago

extract-style v0.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
1 year ago

Introduction

Extract stlye.

Start

npm install -g extract-style

Example

<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div style="width: 100px; height: 100px; background-color: red"></div>
</body>
</html>

run

extract-style -i ./index.html -o ./target

result

<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
	<link rel="stylesheet" href="./index.css">
</head>
<body>
  <div class="LvSrfUQYSuDYoMKBgHfJuZJVhlPgTLyK"></div>
</body>
</html>
/* index.css */
.LvSrfUQYSuDYoMKBgHfJuZJVhlPgTLyK {width:100px;height:100px;background-color:red}
0.0.0

1 year ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago