aboutsummaryrefslogtreecommitdiffstats
path: root/config/webpack.config.js
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2023-04-11 20:37:34 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2023-04-11 20:37:34 +0530
commitb604cb63c8b4a28e4c31708460463ea492cf696e (patch)
tree9e91e8f032e61e19ad0662fb0d7ea1da987cc144 /config/webpack.config.js
parentcf38f96900bb11a5c795f9547319402d6a18b027 (diff)
downloadbanglar-bhumi-utils-b604cb63c8b4a28e4c31708460463ea492cf696e.tar.gz
banglar-bhumi-utils-b604cb63c8b4a28e4c31708460463ea492cf696e.zip
Using a seperate HTML file for the generating the PDF.
Putting the footer at the bottom of each page.
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r--config/webpack.config.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 31bbb8d..2ae6544 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -84,7 +84,7 @@ const commonOptions = {
mode: "production",
target: "web",
resolve: {
- extensions: [".ts", ".js"],
+ extensions: [".ts", ".js", ".html"],
alias: {
"@": global.SOURCE_DIR
}
@@ -97,6 +97,10 @@ const commonOptions = {
options: {
configFile: "config/tsconfig.json"
}
+ },
+ {
+ test: /\.html$/,
+ loader: path.resolve(CONFIG_DIR, "webpack/loader/to-string-loader.js")
}
]
},