From e8bb6e7778fe156c7a5dc9a4d19ae969557268ec Mon Sep 17 00:00:00 2001 From: James Babcock Date: Sat, 1 Aug 2026 11:58:21 -0700 Subject: [PATCH] Add webpack config for bundling readme/etc --- webpack.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 45573416..aa4c6d53 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,4 +1,5 @@ const webpack = require("@nativescript/webpack"); +const { resolve } = require("path"); module.exports = (env) => { webpack.init(env); @@ -6,5 +7,14 @@ module.exports = (env) => { // Learn how to customize: // https://docs.nativescript.org/webpack + // Bundle the top-level project docs so the Settings app's About section + // can display them (see app/ui/dashboard/settings-menus.ts). + for (const doc of ["README", "LICENSE", "PRIVACY"]) { + webpack.Utils.addCopyRule({ + from: resolve(__dirname, doc), + to: "about/", + }); + } + return webpack.resolveConfig(); };