瀏覽代碼

Move webfonts to the dist dir and fix path to images

JC Brand 6 年之前
父節點
當前提交
135cbcd043

+ 0 - 0
webfonts/baumans.ttf → dist/webfonts/baumans.ttf


+ 0 - 0
webfonts/fa-brands-400.eot → dist/webfonts/fa-brands-400.eot


+ 0 - 0
webfonts/fa-brands-400.svg → dist/webfonts/fa-brands-400.svg


+ 0 - 0
webfonts/fa-brands-400.ttf → dist/webfonts/fa-brands-400.ttf


+ 0 - 0
webfonts/fa-brands-400.woff → dist/webfonts/fa-brands-400.woff


+ 0 - 0
webfonts/fa-brands-400.woff2 → dist/webfonts/fa-brands-400.woff2


+ 0 - 0
webfonts/fa-regular-400.eot → dist/webfonts/fa-regular-400.eot


+ 0 - 0
webfonts/fa-regular-400.svg → dist/webfonts/fa-regular-400.svg


+ 0 - 0
webfonts/fa-regular-400.ttf → dist/webfonts/fa-regular-400.ttf


+ 0 - 0
webfonts/fa-regular-400.woff → dist/webfonts/fa-regular-400.woff


+ 0 - 0
webfonts/fa-regular-400.woff2 → dist/webfonts/fa-regular-400.woff2


+ 0 - 0
webfonts/fa-solid-900.eot → dist/webfonts/fa-solid-900.eot


+ 0 - 0
webfonts/fa-solid-900.svg → dist/webfonts/fa-solid-900.svg


+ 0 - 0
webfonts/fa-solid-900.ttf → dist/webfonts/fa-solid-900.ttf


+ 0 - 0
webfonts/fa-solid-900.woff → dist/webfonts/fa-solid-900.woff


+ 0 - 0
webfonts/fa-solid-900.woff2 → dist/webfonts/fa-solid-900.woff2


+ 0 - 0
webfonts/muli.ttf → dist/webfonts/muli.ttf


+ 3 - 3
sass/website.scss

@@ -197,7 +197,7 @@ a {
 .intro {
     margin-top: -4em;
     height: calc(100vh + 4em);
-    background: url(../images/header.jpg) no-repeat bottom center scroll;
+    background: url(/images/header.jpg) no-repeat bottom center scroll;
     background-color: #211018;
     -webkit-background-size: cover;
     -moz-background-size: cover;
@@ -205,13 +205,13 @@ a {
     -o-background-size: cover;
 }
 .features-section {
-    background: url('../images/bgtr.svg') top right no-repeat, url('../images/bgbl.svg') bottom left no-repeat, url('../images/bgbl.svg') bottom left no-repeat, url('../images/overlay.png'), linear-gradient(45deg, #85505f, #384955, #655361);
+    background: url('/images/bgtr.svg') top right no-repeat, url('/images/bgbl.svg') bottom left no-repeat, url('/images/bgbl.svg') bottom left no-repeat, url('/images/overlay.png'), linear-gradient(45deg, #85505f, #384955, #655361);
 }
 .features-section a {
     color: #82B397;
 }
 .outro {
-    background: url('../images/bgtr.svg') top right no-repeat, url('../images/bgbl.svg') bottom left no-repeat, url('../images/overlay.png'), linear-gradient(45deg, #384955, #655361, #85505f);
+    background: url('/images/bgtr.svg') top right no-repeat, url('/images/bgbl.svg') bottom left no-repeat, url('/images/overlay.png'), linear-gradient(45deg, #384955, #655361, #85505f);
 }
 
 section {

+ 1 - 2
webpack.config.js

@@ -44,8 +44,7 @@ const config = {
                     "prependFilenameComment": __dirname
                 }
             }]
-        },
-        {
+        }, {
             test: /webfonts\/.*\.(woff(2)?|ttf|eot|truetype|svg)(\?v=\d+\.\d+\.\d+)?$/,
             use: [
             {