Skip to content
代码片段 群组 项目
提交 f9c0bfcf 编辑于 作者: Lukas Eipert's avatar Lukas Eipert
浏览文件

Reimplement copy-webpack-plugin for vite

We have a few dependencies for which we copy static assets to
`public/assets/webpack`: WebIDE, Source Graph and the PDF viewer.

In webpack we use the `copy-webpack-plugin` for this. It basically takes
an array of files/directories and copies them to
`public/assets/webpack`.

In this commit we move the definition for this to `webpack.constants.js`
and import it to `vite.config.js`. Given our config for the
`copy-webpack-plugin` is rather limited (only absolute paths, no globs),
we can re-implement a rather smallish scope of the plugin for vite.
上级 06e7ba48
No related branches found
No related tags found
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册