Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/autonome/ipfs-lighthouse. Testing some permutations of IPFS in websites on Lighthouse
Something went wrong. Try again.
ipfs-lighthouse webpack.config.js
1234567891011121314151617181920212223242526272829const webpack = require('webpack');const path = require('path');const { GenerateSW } = require('workbox-webpack-plugin');const WebpackPwaManifest = require('webpack-pwa-manifest')
const config = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'bundle.js' }, devServer: { contentBase: path.join(__dirname, 'dist'), compress: true, port: 9000 }, plugins: [ new WebpackPwaManifest({ name: 'IPFS Lighthouse', short_name: 'IPFSLighthouse', description: 'Test IPFS on Lighthouse.', background_color: '#ffffff' }), new GenerateSW() ]}
module.exports = config;