Commit 094d0cbb authored by Guillaume Grossetie's avatar Guillaume Grossetie 🎧
Browse files

resolves #12 remove subfont, pull fonts from npm packages

Also resolves #11
parent 53949246
Pipeline #3124 passed with stage
in 35 seconds
This diff is collapsed.
......@@ -2,6 +2,7 @@ import { nodeResolve } from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import { terser } from 'rollup-plugin-terser'
import { babel } from '@rollup/plugin-babel'
import copy from 'rollup-plugin-copy'
function wrap () {
return {
......@@ -31,6 +32,26 @@ export default {
strict: false // Opal does not work in strict mode :|
},
plugins: [
copy({
targets: [
{
src: [
'node_modules/@fontsource/inter/files/inter-latin-400-normal.woff2',
'node_modules/@fontsource/inter/files/inter-latin-500-normal.woff2',
'node_modules/@fontsource/inter/files/inter-latin-700-normal.woff2',
'node_modules/@fontsource/inter/files/inter-latin-900-normal.woff2',
'node_modules/@fontsource/urbanist/files/urbanist-latin-400-normal.woff2',
'node_modules/@fontsource/urbanist/files/urbanist-latin-500-normal.woff2',
'node_modules/@fontsource/urbanist/files/urbanist-latin-700-normal.woff2',
'node_modules/@fontsource/urbanist/files/urbanist-latin-900-normal.woff2',
'node_modules/@fontsource/source-code-pro/files/source-code-pro-latin-400-normal.woff2',
'node_modules/@fontsource/source-code-pro/files/source-code-pro-latin-500-normal.woff2',
'node_modules/@fontsource/source-code-pro/files/source-code-pro-latin-600-normal.woff2'
],
dest: '_site/assets/css/files'
}
]
}),
wrap(),
nodeResolve({ browser: true }),
commonjs(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment