Open MarketingLimited opened 7 years ago
You need to copy the assets folder to the dist folder for that you can try this out. This is how i did it and achieved the desired.
npm install copy-webpack-plugin
In your webpack-umd.config.ts
file make below changes:-
import * as CopyWebpackPlugin from 'copy-webpack-plugin';
add below to your plugins
plugins: [
new CopyWebpackPlugin([
{ from: './src/assets', to: './assets' },
])
]
How can I include assets like images in library, and use them for img src ?