Switch to font source for open sans (#2220)

* switch to font source for open sans

* add 700 font weight
This commit is contained in:
Mutasem Aldmour 2021-09-21 14:35:55 +02:00 committed by GitHub
parent 8d42eddfc2
commit 53fbf664b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 11 deletions

View file

@ -25,13 +25,13 @@
"test:unit": "vue-cli-service test:unit" "test:unit": "vue-cli-service test:unit"
}, },
"dependencies": { "dependencies": {
"@fontsource/open-sans": "^4.5.0",
"n8n-design-system": "~0.3.0", "n8n-design-system": "~0.3.0",
"timeago.js": "^4.0.2", "timeago.js": "^4.0.2",
"v-click-outside": "^3.1.2", "v-click-outside": "^3.1.2",
"vue-fragment": "^1.5.2" "vue-fragment": "^1.5.2"
}, },
"devDependencies": { "devDependencies": {
"@beyonk/google-fonts-webpack-plugin": "^1.5.0",
"@fortawesome/fontawesome-svg-core": "^1.2.35", "@fortawesome/fontawesome-svg-core": "^1.2.35",
"@fortawesome/free-solid-svg-icons": "^5.15.3", "@fortawesome/free-solid-svg-icons": "^5.15.3",
"@fortawesome/vue-fontawesome": "^2.0.2", "@fortawesome/vue-fontawesome": "^2.0.2",

View file

@ -9,6 +9,11 @@ import 'vue-prism-editor/dist/VuePrismEditor.css';
import 'vue-json-pretty/lib/styles.css'; import 'vue-json-pretty/lib/styles.css';
import './n8n-theme.scss'; import './n8n-theme.scss';
import "@fontsource/open-sans/latin-300.css";
import "@fontsource/open-sans/latin-400.css";
import "@fontsource/open-sans/latin-600.css";
import "@fontsource/open-sans/latin-700.css";
import App from '@/App.vue'; import App from '@/App.vue';
import router from './router'; import router from './router';

View file

@ -1,5 +1,3 @@
const GoogleFontsPlugin = require('@beyonk/google-fonts-webpack-plugin');
module.exports = { module.exports = {
chainWebpack: config => config.resolve.symlinks(false), chainWebpack: config => config.resolve.symlinks(false),
// transpileDependencies: [ // transpileDependencies: [
@ -12,14 +10,6 @@ module.exports = {
}, },
}, },
configureWebpack: { configureWebpack: {
plugins: [
new GoogleFontsPlugin({
apiUrl: 'https://n8n-google-fonts-helper.herokuapp.com/api/fonts',
fonts: [
{ family: 'Open Sans', variants: ['300', '400', '600', '700'] },
],
}),
],
devServer: { devServer: {
disableHostCheck: true, disableHostCheck: true,
}, },