From 290f849c64c9f198f09b592daa48ecdae957375f Mon Sep 17 00:00:00 2001 From: Radu Date: Fri, 24 Nov 2023 16:52:57 -0500 Subject: Support GFM using `remarked` and fix some bugs - This avoids edge cases in the primitive parser I wrote. - Add KaTeX stylesheet (cause of rendering issues, not Pronto). - Bundle with Webpack. --- webpack.config.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 webpack.config.js (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..90dfeb6 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0-only + +const path = require("path"); +const { LicenseWebpackPlugin } = require("license-webpack-plugin"); + +module.exports = { + entry: "./page.ts", + devtool: "source-map", + module: { + rules: [ + { test: /\.ts$/i, use: "ts-loader" }, + { test: /\.css$/i, use: ["style-loader", "css-loader"] }, + { test: /\.(woff|woff2|eot|ttf|otf)$/i, type: "asset/resource" }, + { + test: /\.json$/i, + use: "file-loader?name=[name].[ext]", + type: "javascript/auto", + }, + ], + }, + plugins: [new LicenseWebpackPlugin({ stats: { warnings: false } })], + output: { + path: path.resolve(__dirname, "dist"), + filename: "page.js", + }, +}; -- cgit v1.2.3