mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 04:47:29 -08:00
⚡ Switch to font source for open sans (#2220)
* switch to font source for open sans * add 700 font weight
This commit is contained in:
parent
8d42eddfc2
commit
53fbf664b5
|
@ -25,13 +25,13 @@
|
|||
"test:unit": "vue-cli-service test:unit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fontsource/open-sans": "^4.5.0",
|
||||
"n8n-design-system": "~0.3.0",
|
||||
"timeago.js": "^4.0.2",
|
||||
"v-click-outside": "^3.1.2",
|
||||
"vue-fragment": "^1.5.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@beyonk/google-fonts-webpack-plugin": "^1.5.0",
|
||||
"@fortawesome/fontawesome-svg-core": "^1.2.35",
|
||||
"@fortawesome/free-solid-svg-icons": "^5.15.3",
|
||||
"@fortawesome/vue-fontawesome": "^2.0.2",
|
||||
|
|
|
@ -9,6 +9,11 @@ import 'vue-prism-editor/dist/VuePrismEditor.css';
|
|||
import 'vue-json-pretty/lib/styles.css';
|
||||
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 router from './router';
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
const GoogleFontsPlugin = require('@beyonk/google-fonts-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
chainWebpack: config => config.resolve.symlinks(false),
|
||||
// transpileDependencies: [
|
||||
|
@ -12,14 +10,6 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
configureWebpack: {
|
||||
plugins: [
|
||||
new GoogleFontsPlugin({
|
||||
apiUrl: 'https://n8n-google-fonts-helper.herokuapp.com/api/fonts',
|
||||
fonts: [
|
||||
{ family: 'Open Sans', variants: ['300', '400', '600', '700'] },
|
||||
],
|
||||
}),
|
||||
],
|
||||
devServer: {
|
||||
disableHostCheck: true,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue