Skip to content

Commit 5f766b4

Browse files
author
longshihui
committed
fix(navigator-index): 修复Logo不能正确打包的问题
1 parent 32a1679 commit 5f766b4

File tree

4 files changed

+64
-2
lines changed

4 files changed

+64
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"cz-conventional-changelog": "^2.1.0",
4848
"mockjs": "^1.0.1-beta3",
4949
"node-sass": "^4.9.0",
50+
"postcss-url": "^8.0.0",
5051
"rollup": "^0.65.0",
5152
"rollup-plugin-commonjs": "^9.1.6",
5253
"rollup-plugin-node-resolve": "^3.3.0",

rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import commonjs from 'rollup-plugin-commonjs';
22
import resolve from 'rollup-plugin-node-resolve';
33
import vue from 'rollup-plugin-vue';
44
import typescript from 'rollup-plugin-typescript2';
5+
import postcssURL from 'postcss-url';
56

67
export default [
78
{

src/navigator-index/app.vue

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,47 @@ body {
9090
margin: 0 auto;
9191
width: 150px;
9292
height: 150px;
93-
background: url("~@/assets/logo.png");
93+
background: url("data:img/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAABU1BMVEUAAABBuIM1SV5BuINBuINA
94+
sIFBuINBuINBuINAsoE2TmBBuINBuINBuINBuINBuINBuINBuINBuINBuINBuINBuoRBuINBuINB
95+
uINBuINApn5AroBBuINBuINBuINBuINBuINBuIM8d3BBuINBuIM4XGVBuIM5ZmpBuINBuINBuIM8
96+
enI2UWE3VGM3VWNBuINBuIM3V2RBuIM4WmQ5YmhBuIM5Y2k6amtBuINBuIM6bm07cG47b207dG9B
97+
uINBuIMzO1k6Z2o6aGpBuINBuIM1SV5Bt4NDyok0Qlw0QFtCxogzOFk1R10zNldDzIk1Rl00RFwy
98+
NVczPVozO1lCw4dBvIRBvoVBv4VC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Mwu7ijsvpPcteSkH1U9nP8zt631lGZYQRmkOK9LsmTXI7qhelbc/XC9K21enH61jYq
126+
225/dyB9a3qv2x+P+/RPcvbq9dvtHEzfmqr3cADqW9N7XfInuXjvdXb2J7n01QvWt7qli2QpeU1d
127+
JFPJbOOi2EhuMxfFTLIbuwjGkp9vVFZzBAZg4swmAqGqekH79vzqRe1b3ciZjASFZ1TmH4HBWDuD
128+
tQBZuGALQaJXL3bf6oYu0FCwaIcGvCNCHc98fXuqevn6Vjd3AeYCaOXOthJEU8K+DRiVaT4E04yw
129+
b3Vjvr71j8r8WhB9q5sQ9m3FoQH9iGAYlWm+BNqIr29Pv9chPcklH5V9Crw21pNcuAHYk1zSUdmF
130+
MGgS9q2ui/UkZxmVeUdgJPpgT3KJRmUvwuO9egRGpIP1JGd5r8N6kgvXA3uSC9fCepKLPip7EzpX
131+
fH2rewJ7kos6KrsXRpc3fH2rewB7kgvX5utb3YCwb2uMyl6FV5Owb3Vdvr71jcpuafpW1yfsW90d
132+
1pNcuEewJ7lwHb6+PVW9fH2r6xH2ra7RkP9hDvk6UxRFURRFURS0/gD8CBvXYvEa7AAAAABJRU5E
133+
rkJggg==");
94134
background-size: cover;
95135
}
96136

yarn.lock

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2263,6 +2263,10 @@ csso@^3.5.0:
22632263
dependencies:
22642264
css-tree "1.0.0-alpha.29"
22652265

2266+
cuint@^0.2.2:
2267+
version "0.2.2"
2268+
resolved "https://registry.yarnpkg.com/cuint/-/cuint-0.2.2.tgz#408086d409550c2631155619e9fa7bcadc3b991b"
2269+
22662270
currently-unhandled@^0.4.1:
22672271
version "0.4.1"
22682272
resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea"
@@ -5944,6 +5948,16 @@ postcss-unique-selectors@^4.0.0:
59445948
postcss "^6.0.0"
59455949
uniqs "^2.0.0"
59465950

5951+
postcss-url@^8.0.0:
5952+
version "8.0.0"
5953+
resolved "https://registry.yarnpkg.com/postcss-url/-/postcss-url-8.0.0.tgz#7b10059bd12929cdbb1971c60f61a0e5af86b4ca"
5954+
dependencies:
5955+
mime "^2.3.1"
5956+
minimatch "^3.0.4"
5957+
mkdirp "^0.5.0"
5958+
postcss "^7.0.2"
5959+
xxhashjs "^0.2.1"
5960+
59475961
postcss-value-parser@^3.0.0, postcss-value-parser@^3.2.3, postcss-value-parser@^3.3.0:
59485962
version "3.3.0"
59495963
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz#87f38f9f18f774a4ab4c8a232f5c5ce8872a9d15"
@@ -5965,7 +5979,7 @@ postcss@^6.0.0, postcss@^6.0.1, postcss@^6.0.20, postcss@^6.0.23:
59655979
source-map "^0.6.1"
59665980
supports-color "^5.4.0"
59675981

5968-
postcss@^7.0.0:
5982+
postcss@^7.0.0, postcss@^7.0.2:
59695983
version "7.0.2"
59705984
resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.2.tgz#7b5a109de356804e27f95a960bef0e4d5bc9bb18"
59715985
dependencies:
@@ -7901,6 +7915,12 @@ xtend@^4.0.0, xtend@~4.0.1:
79017915
version "4.0.1"
79027916
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
79037917

7918+
xxhashjs@^0.2.1:
7919+
version "0.2.2"
7920+
resolved "https://registry.yarnpkg.com/xxhashjs/-/xxhashjs-0.2.2.tgz#8a6251567621a1c46a5ae204da0249c7f8caa9d8"
7921+
dependencies:
7922+
cuint "^0.2.2"
7923+
79047924
y18n@^3.2.1:
79057925
version "3.2.1"
79067926
resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41"

0 commit comments

Comments
 (0)