- Install webpack plugin to copy files
npm install copy-webpack-plugin
- Place your
icon.png
in the directory - Update webpack config -- see file below
- Update package metadata --- see file below
- Run
npm run build
npm run package:discover
{ | |
"icon": "icon.png" | |
} |
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
module.exports = { | |
plugins: [ | |
new CopyWebpackPlugin([ | |
'icon.png' | |
]) | |
], | |
}; |