-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
26 lines (25 loc) · 1.53 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const CopyPlugin = require("copy-webpack-plugin");
module.exports = {
entry: './index.js',
mode: process.env.NODE_ENV,
plugins: [
new CopyPlugin({
patterns: [
{ from: 'node_modules/@fontsource/inter', to: '../static/css/fonts/inter/' },
{ from: 'node_modules/@fontsource/gothic-a1', to: '../static/css/fonts/gothic-a1/' },
{ from: 'node_modules/@fontsource/jetbrains-mono', to: '../static/css/fonts/jetbrains-mono/' },
{ from: 'node_modules/katex/dist/fonts', to: '../static/css/fonts/' },
{ from: 'node_modules/katex/dist/katex.min.css', to: '../static/css/' },
{ from: 'node_modules/katex/dist/katex.min.js', to: '../static/js/' },
{ from: 'node_modules/katex/dist/contrib/auto-render.min.js', to: '../static/js/' },
{ from: 'node_modules/katex/dist/katex.min.css', to: '../static/css/' },
{ from: 'node_modules/vega/build/vega.min.js', to: '../static/js/' },
{ from: 'node_modules/vega/build/vega-schema.json', to: '../static/schema/' },
{ from: 'node_modules/vega-lite/build/vega-lite.min.js', to: '../static/js/' },
{ from: 'node_modules/vega-lite/build/vega-lite-schema.json', to: '../static/schema/' },
{ from: 'node_modules/vega-embed/build/vega-embed.min.js', to: '../static/js/' },
{ from: 'node_modules/vega-themes/build/vega-themes.min.js', to: '../static/js/' },
]
})
],
};