Sparrow is a libre front-end forum software powered by the Matrix protocol and using a Matrix homeserver as its back-end

webpack.config.js 300B

123456789101112131415
  1. const path = require('path');
  2. const HtmlWebpackPlugin = require('html-webpack-plugin');
  3. module.exports = {
  4. entry: './src/index.js',
  5. output: {
  6. filename: 'sparrow.js',
  7. path: path.resolve(__dirname, 'dist')
  8. },
  9. plugins: [
  10. new HtmlWebpackPlugin({
  11. template: './src/index.html'
  12. })
  13. ]
  14. };