Move templates into src

This commit is contained in:
projectmoon 2021-01-03 13:37:55 +00:00
parent a16ffd0495
commit 616cbe5730
10 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ const root = path.resolve(__dirname, '..', '..', '..');
function packPage(page, chunks) { function packPage(page, chunks) {
if (!chunks) chunks = []; if (!chunks) chunks = [];
return new HtmlWebpackPlugin({ return new HtmlWebpackPlugin({
template: `${root}/templates/${page}`, template: `${root}/src/templates/${page}`,
filename: `${root}/static/templates/${page}`, filename: `${root}/static/templates/${page}`,
chunks: chunks, chunks: chunks,
inject: false, inject: false,