Skip to content
代码片段 群组 项目
  • Lukas Eipert's avatar
    f9c0bfcf
    Reimplement copy-webpack-plugin for vite · f9c0bfcf
    Lukas Eipert 创作于
    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.
    f9c0bfcf
    历史
    Reimplement copy-webpack-plugin for vite
    Lukas Eipert 创作于
    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.
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。