forked from Blendman974/faceclaw
Add webpack config for bundling readme/etc
This commit is contained in:
1 parent
4d1182599b
commit
e8bb6e7778
1 file changed
+10
@@ -1,4 +1,5 @@
|
|||||||
const webpack = require("@nativescript/webpack");
|
const webpack = require("@nativescript/webpack");
|
||||||
|
const { resolve } = require("path");
|
||||||
|
|
||||||
module.exports = (env) => {
|
module.exports = (env) => {
|
||||||
webpack.init(env);
|
webpack.init(env);
|
||||||
@@ -6,5 +7,14 @@ module.exports = (env) => {
|
|||||||
// Learn how to customize:
|
// Learn how to customize:
|
||||||
// https://docs.nativescript.org/webpack
|
// 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();
|
return webpack.resolveConfig();
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user