This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
rustboyadvance-ng/platform/rustboyadvance-wasm/app/webpack.config.js
Michel Heily f7719d4183 Add favicon to wasm app
Former-commit-id: 54c3133e61b3c9edbe9e5ffb878ba232734f8326
2020-04-30 09:59:13 +03:00

35 lines
913 B
JavaScript

const CopyWebpackPlugin = require("copy-webpack-plugin");
const FaviconsWebpackPlugin = require('favicons-webpack-plugin')
const path = require('path');
module.exports = {
entry: "./bootstrap.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "bootstrap.js",
},
mode: "development",
plugins: [
new CopyWebpackPlugin(['index.html', '../../../assets/icon.png']),
new FaviconsWebpackPlugin({
logo: '../../../assets/icon.png',
cache: true,
mode: 'webapp',
devMode: 'webapp',
favicons: {
appName: 'rustboyadvance',
appDescription: 'Web Demo for rustboyadvance',
developerName: 'michel',
developerURL: null, // prevent retrieving from the nearest package.json
background: '#ddd',
theme_color: '#333',
icons: {
coast: false,
yandex: false,
}
}
})
],
};