mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
Merge pull request #1176 from verdaccio/feat-offline-fonts
fix: remove online fonts
This commit is contained in:
commit
c760a8099e
@ -10,4 +10,5 @@ build/
|
|||||||
*.yaml
|
*.yaml
|
||||||
Dockerfile
|
Dockerfile
|
||||||
*.rpi
|
*.rpi
|
||||||
|
*.html
|
||||||
*.scss
|
*.scss
|
||||||
|
@ -137,6 +137,7 @@
|
|||||||
"react-hot-loader": "4.2.0",
|
"react-hot-loader": "4.2.0",
|
||||||
"react-router": "4.3.1",
|
"react-router": "4.3.1",
|
||||||
"react-router-dom": "4.2.2",
|
"react-router-dom": "4.2.2",
|
||||||
|
"resolve-url-loader": "3.0.0",
|
||||||
"rimraf": "2.6.2",
|
"rimraf": "2.6.2",
|
||||||
"sass-loader": "7.1.0",
|
"sass-loader": "7.1.0",
|
||||||
"source-map-loader": "0.2.4",
|
"source-map-loader": "0.2.4",
|
||||||
@ -150,6 +151,7 @@
|
|||||||
"stylelint-scss": "3.3.1",
|
"stylelint-scss": "3.3.1",
|
||||||
"stylelint-webpack-plugin": "0.10.5",
|
"stylelint-webpack-plugin": "0.10.5",
|
||||||
"supertest": "3.3.0",
|
"supertest": "3.3.0",
|
||||||
|
"typeface-roboto": "0.0.54",
|
||||||
"url-loader": "1.1.1",
|
"url-loader": "1.1.1",
|
||||||
"verdaccio-auth-memory": "0.0.4",
|
"verdaccio-auth-memory": "0.0.4",
|
||||||
"verdaccio-memory": "1.0.3",
|
"verdaccio-memory": "1.0.3",
|
||||||
|
@ -12,7 +12,7 @@ import Header from './components/Header';
|
|||||||
import { Container, Content } from './components/Layout';
|
import { Container, Content } from './components/Layout';
|
||||||
import Route from './router';
|
import Route from './router';
|
||||||
import API from './utils/api';
|
import API from './utils/api';
|
||||||
|
import './styles/typeface-roboto.scss';
|
||||||
import './styles/main.scss';
|
import './styles/main.scss';
|
||||||
import 'normalize.css';
|
import 'normalize.css';
|
||||||
|
|
||||||
|
1
src/webui/styles/typeface-roboto.scss
Normal file
1
src/webui/styles/typeface-roboto.scss
Normal file
@ -0,0 +1 @@
|
|||||||
|
@import '~typeface-roboto';
|
@ -29,7 +29,7 @@
|
|||||||
// Scaffolding
|
// Scaffolding
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
$body-bg: $white;
|
$body-bg: $white;
|
||||||
$text-color: $eclipse;
|
$text-color: $eclipse;
|
||||||
|
|
||||||
// Typography
|
// Typography
|
||||||
|
@ -7,10 +7,6 @@
|
|||||||
<%= htmlWebpackPlugin.options.title %>
|
<%= htmlWebpackPlugin.options.title %>
|
||||||
</title>
|
</title>
|
||||||
<link rel="icon" type="image/png" href="<%= htmlWebpackPlugin.options.verdaccioURL %>/-/static/favicon.ico" />
|
<link rel="icon" type="image/png" href="<%= htmlWebpackPlugin.options.verdaccioURL %>/-/static/favicon.ico" />
|
||||||
<!-- Robot Font -->
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" />
|
|
||||||
<!-- Material Icons Font -->
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<script>
|
<script>
|
||||||
window.VERDACCIO_API_URL = '<%= htmlWebpackPlugin.options.verdaccioURL %>/-/verdaccio/';
|
window.VERDACCIO_API_URL = '<%= htmlWebpackPlugin.options.verdaccioURL %>/-/verdaccio/';
|
||||||
|
@ -63,32 +63,18 @@ module.exports = {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(ttf|eot|woff|woff2)$/,
|
test: /\.(woff|woff2|eot|ttf|otf)$/,
|
||||||
loader: 'url-loader',
|
loader: 'url-loader',
|
||||||
options: {
|
options: {
|
||||||
limit: 50000,
|
name: 'fonts/[name].[ext]',
|
||||||
name: 'fonts/[hash].[ext]',
|
limit: 50,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.scss$/,
|
test: /\.scss$/,
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
use: [
|
loader: `style-loader!css-loader?module&sourceMap=false&localIdentName=[path][name]__[local]--[hash:base64:5]
|
||||||
{
|
!resolve-url-loader?keepQuery!sass-loader?sourceMap`
|
||||||
loader: 'style-loader',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
loader: 'css-loader',
|
|
||||||
options: {
|
|
||||||
sourceMap: true,
|
|
||||||
module: true,
|
|
||||||
localIdentName: '[path][name]__[local]--[hash:base64:5]',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
loader: 'sass-loader',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
|
BIN
yarn.lock
BIN
yarn.lock
Binary file not shown.
Loading…
Reference in New Issue
Block a user