Skip to content

Commit dc978f0

Browse files
committed
Here's the commit message following conventional commit format:
``` chore(webpack): re-enable CleanWebpackPlugin and remove notion test file This commit: 1. Re-enables CleanWebpackPlugin in the webpack configuration which was previously commented out 2. Removes the unused notion/service.test.ts file since it's no longer needed 3. Uncomments the distFiles declaration that's used by CleanWebpackPlugin The changes clean up the build process by properly cleaning the dist directory between builds and removing test code for functionality that's no longer used. ```
1 parent 466e63f commit dc978f0

File tree

2 files changed

+8
-91
lines changed

2 files changed

+8
-91
lines changed

src/common/backend/services/notion/service.test.ts

Lines changed: 0 additions & 83 deletions
This file was deleted.

webpack/webpack.common.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function resolve(dir) {
1212
return path.join(__dirname, '..', dir);
1313
}
1414

15-
// const distFiles = fs.readdirSync(resolve('dist')).filter((o) => o !== '.gitkeep');
15+
const distFiles = fs.readdirSync(resolve('dist')).filter((o) => o !== '.gitkeep');
1616

1717
module.exports = {
1818
entry: {
@@ -149,13 +149,13 @@ module.exports = {
149149
$: 'jquery',
150150
jQuery: 'jquery',
151151
}),
152-
// new CleanWebpackPlugin(
153-
// distFiles.map((p) => `dist/${p}`),
154-
// {
155-
// root: path.resolve(__dirname, '../'),
156-
// verbose: true,
157-
// }
158-
// ),
152+
new CleanWebpackPlugin(
153+
distFiles.map((p) => `dist/${p}`),
154+
{
155+
root: path.resolve(__dirname, '../'),
156+
verbose: true,
157+
}
158+
),
159159
new CopyWebpackPlugin([
160160
{
161161
from: resolve('chrome/html'),

0 commit comments

Comments
 (0)