How to ship components with images properly

时间:2021-08-23 19:31:46   收藏:0   阅读:14
// tsdx.config.js

const images = require(‘@rollup/plugin-image‘);

module.exports = {
  rollup(config, options) {
    config.plugins = [
      images({ include: [‘**/*.png‘, ‘**/*.jpg‘] }),
      ...config.plugins,
    ]

    return config
  },
}

 

原文:https://www.cnblogs.com/xulei1992/p/15176992.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!