Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEC-000: Update file-loader public path in Webpack Config #786

Merged
merged 1 commit into from
Jan 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions dist/decanter.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,36 @@
font-style: normal;
font-weight: 400;
font-display: auto;
src: url(/assets/fonts/fa-regular-400.eot);
src: url(/assets/fonts/fa-regular-400.eot?#iefix) format("embedded-opentype"),
url(/assets/fonts/fa-regular-400.woff2) format("woff2"),
url(/assets/fonts/fa-regular-400.woff) format("woff"),
url(/assets/fonts/fa-regular-400.ttf) format("truetype"),
url(/assets/img/fa-regular-400.svg#fontawesome) format("svg");
src: url(./assets/fonts/fa-regular-400.eot);
src: url(./assets/fonts/fa-regular-400.eot?#iefix) format("embedded-opentype"),
url(./assets/fonts/fa-regular-400.woff2) format("woff2"),
url(./assets/fonts/fa-regular-400.woff) format("woff"),
url(./assets/fonts/fa-regular-400.ttf) format("truetype"),
url(./assets/img/fa-regular-400.svg#fontawesome) format("svg");
}
@font-face {
font-family: 'Font Awesome 5 Free';
font-style: normal;
font-weight: 900;
font-display: auto;
src: url(/assets/fonts/fa-solid-900.eot);
src: url(/assets/fonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),
url(/assets/fonts/fa-solid-900.woff2) format("woff2"),
url(/assets/fonts/fa-solid-900.woff) format("woff"),
url(/assets/fonts/fa-solid-900.ttf) format("truetype"),
url(/assets/img/fa-solid-900.svg#fontawesome) format("svg");
src: url(./assets/fonts/fa-solid-900.eot);
src: url(./assets/fonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),
url(./assets/fonts/fa-solid-900.woff2) format("woff2"),
url(./assets/fonts/fa-solid-900.woff) format("woff"),
url(./assets/fonts/fa-solid-900.ttf) format("truetype"),
url(./assets/img/fa-solid-900.svg#fontawesome) format("svg");
}
@font-face {
font-family: 'Font Awesome 5 Brands';
font-style: normal;
font-weight: 400;
font-display: auto;
src: url(/assets/fonts/fa-brands-400.eot);
src: url(/assets/fonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),
url(/assets/fonts/fa-brands-400.woff2) format("woff2"),
url(/assets/fonts/fa-brands-400.woff) format("woff"),
url(/assets/fonts/fa-brands-400.ttf) format("truetype"),
url(/assets/img/fa-brands-400.svg#fontawesome) format("svg");
src: url(./assets/fonts/fa-brands-400.eot);
src: url(./assets/fonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),
url(./assets/fonts/fa-brands-400.woff2) format("woff2"),
url(./assets/fonts/fa-brands-400.woff) format("woff"),
url(./assets/fonts/fa-brands-400.ttf) format("truetype"),
url(./assets/img/fa-brands-400.svg#fontawesome) format("svg");
}
@font-face {
font-family: "Stanford";
Expand Down Expand Up @@ -1509,7 +1509,7 @@ table tbody th{
margin-right: 0;
margin-bottom: 0;
opacity: 0.6;
background: url(/assets/img/icon-search.svg) no-repeat 0 0;
background: url(./assets/img/icon-search.svg) no-repeat 0 0;
}
.su-site-search__submit:hover, .su-site-search__submit:active, .su-site-search__submit:focus{
background-color: transparent;
Expand Down Expand Up @@ -3870,7 +3870,7 @@ table tbody th{
background-image: linear-gradient(to top left, var(--tw-gradient-stops));
}
.su-bg-icon-search{
background-image: url(/assets/img/icon-search.svg);
background-image: url(./assets/img/icon-search.svg);
}
.su-from-transparent{
--tw-gradient-from: transparent;
Expand Down Expand Up @@ -25402,7 +25402,7 @@ table tbody th{
}

.xs\:su-bg-icon-search{
background-image: url(/assets/img/icon-search.svg);
background-image: url(./assets/img/icon-search.svg);
}

.xs\:su-from-transparent{
Expand Down Expand Up @@ -48513,7 +48513,7 @@ table tbody th{
}

.sm\:su-bg-icon-search{
background-image: url(/assets/img/icon-search.svg);
background-image: url(./assets/img/icon-search.svg);
}

.sm\:su-from-transparent{
Expand Down Expand Up @@ -71624,7 +71624,7 @@ table tbody th{
}

.md\:su-bg-icon-search{
background-image: url(/assets/img/icon-search.svg);
background-image: url(./assets/img/icon-search.svg);
}

.md\:su-from-transparent{
Expand Down Expand Up @@ -94735,7 +94735,7 @@ table tbody th{
}

.lg\:su-bg-icon-search{
background-image: url(/assets/img/icon-search.svg);
background-image: url(./assets/img/icon-search.svg);
}

.lg\:su-from-transparent{
Expand Down Expand Up @@ -117846,7 +117846,7 @@ table tbody th{
}

.xl\:su-bg-icon-search{
background-image: url(/assets/img/icon-search.svg);
background-image: url(./assets/img/icon-search.svg);
}

.xl\:su-from-transparent{
Expand Down Expand Up @@ -140957,7 +140957,7 @@ table tbody th{
}

.\32xl\:su-bg-icon-search{
background-image: url(/assets/img/icon-search.svg);
background-image: url(./assets/img/icon-search.svg);
}

.\32xl\:su-from-transparent{
Expand Down
28 changes: 14 additions & 14 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,36 +62,36 @@ module.exports = {
require('tailwindcss'),
require('postcss-import'),
require('postcss-nested'),
require('autoprefixer'),
],
},
},
},
],
require('autoprefixer')
]
}
}
}
]
},
{
test: /\.(woff2?|ttf|otf|eot)$/,
loader: 'file-loader',
options: {
name: "[name].[ext]",
publicPath: "/assets/fonts",
outputPath: "../dist/assets/fonts"
name: '[name].[ext]',
publicPath: './assets/fonts',
outputPath: '../dist/assets/fonts'
}
},
// Apply plugins to image assets.
{
test: /\.(png|svg|jpg|gif)$/i,
use: [
{
loader: "file-loader",
loader: 'file-loader',
options: {
name: "[name].[ext]",
publicPath: "/assets/img",
outputPath: "../dist/assets/img"
name: '[name].[ext]',
publicPath: './assets/img',
outputPath: '../dist/assets/img'
}
}
]
}
],
]
}
}