- repair font_awesome font

This commit is contained in:
Arno Kaimbacher 2021-08-24 15:12:47 +02:00
parent da1c1eae9e
commit fa64fa904b
5 changed files with 500 additions and 454 deletions

View File

@ -6,6 +6,7 @@
"plugins": [ "plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }], ["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": true }], ["@babel/plugin-proposal-class-properties", { "loose": true }],
["@babel/plugin-proposal-private-property-in-object", { "loose": true }],
["@babel/plugin-proposal-private-methods", { "loose": true }], ["@babel/plugin-proposal-private-methods", { "loose": true }],
["@babel/plugin-transform-runtime", { "regenerator": true }], ["@babel/plugin-transform-runtime", { "regenerator": true }],
"@babel/proposal-object-rest-spread" "@babel/proposal-object-rest-spread"

915
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,8 +3,17 @@
// $fa-font-path: "/webfonts"; // destination folder in dist // $fa-font-path: "/webfonts"; // destination folder in dist
//Adapt the path to be relative to your main.scss file //Adapt the path to be relative to your main.scss file
@import "../../node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss"; // @import "../../node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss";
@import "../../node_modules/@fortawesome/fontawesome-free/scss/solid.scss"; // @import "../../node_modules/@fortawesome/fontawesome-free/scss/solid.scss";
// @import '~@fortawesome/fontawesome-free/scss/fontawesome';
// $fa-font-path: "~@fortawesome/fontawesome-free/webfonts" !default;
// $fa-font-path: "../../webfonts" !default;
$fa-font-path: "~@fortawesome/fontawesome-free/webfonts" !default;
@import '~@fortawesome/fontawesome-free/scss/solid';
@import '~@fortawesome/fontawesome-free/scss/fontawesome';
// Import a Google Font // Import a Google Font
@import url('https://fonts.googleapis.com/css?family=Nunito:400,700'); @import url('https://fonts.googleapis.com/css?family=Nunito:400,700');

View File

@ -6,7 +6,7 @@ abstract class Control extends EventEmitter {
// @section // @section
// @aka Control options // @aka Control options
abstract options = { options = {
position: 'topright', position: 'topright',
}; };
protected _map; protected _map;

View File

@ -35,14 +35,17 @@ module.exports = {
// }, // },
module: { module: {
rules: [ rules: [
{
test: /\.(svg|eot|ttf|woff|woff2)$/,
loader: 'url-loader', // {
options: { // test: /\.(svg|eot|ttf|woff|woff2)$/,
limit: 10000, // loader: 'url-loader',
name: 'webfonts/[name].[ext]' // options: {
} // limit: 10000,
}, // name: 'webfonts/[name].[ext]'
// }
// },
// { // {
// test: /\.(png|jpg|gif)$/, // test: /\.(png|jpg|gif)$/,
// loaders: [ // loaders: [
@ -101,7 +104,9 @@ module.exports = {
sourceMap: true sourceMap: true
} }
}, },
'resolve-url-loader', // {
// loader: 'resolve-url-loader',
// },
// Compiles Sass to CSS // Compiles Sass to CSS
{ {
loader: "sass-loader", loader: "sass-loader",