// tsdx.config.js const images = require(‘@rollup/plugin-image‘); module.exports = { rollup(config, options) { config.plugins = [ images({ include: [‘**/*.png‘, ‘**/*.jpg‘] }), ...config.plugins, ] return config }, }
How to ship components with images properly
原文:https://www.cnblogs.com/xulei1992/p/15176992.html