Skip to content

Commit

Permalink
Merge pull request #1 from dranc/fix/clean-code
Browse files Browse the repository at this point in the history
Remove some useless code + clean a little bit the webpack packaging even if I'm pretty sure i will delte it later ...
  • Loading branch information
dranc authored Jan 3, 2024
2 parents cd46aa2 + 2a8fb8f commit 99155da
Show file tree
Hide file tree
Showing 27 changed files with 5,112 additions and 2,265 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm i
- run: npm ci
- run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
.DS_Store

npm-debug.log*
size-plugin.json
13 changes: 0 additions & 13 deletions backup/manifest.json

This file was deleted.

1,952 changes: 0 additions & 1,952 deletions backup/package-lock.json

This file was deleted.

18 changes: 0 additions & 18 deletions backup/package.json

This file was deleted.

13 changes: 0 additions & 13 deletions backup/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const common = {
patterns: [
{
from: '**/*',
context: 'public',
context: 'src/asset',
},
]
}),
Expand Down
16 changes: 12 additions & 4 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,31 @@ const config = merge(common, {
entry: {
popup: PATHS.src + '/popup.ts',
contentScript: PATHS.src + '/contentScript.ts',
background: PATHS.src + '/background.js',
background: PATHS.src + '/background.ts',
index: PATHS.src + '/index.ts',
style: PATHS.src + '/asset/style/index.scss'
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
module: {
rules: [
{
{
test: /\.tsx?$/,
loader: 'ts-loader',
exclude: /node_modules/,
},
{
test: /\.s[ac]ss$/i,
use: ['style-loader', 'css-loader', 'sass-loader'],
},
exclude: /node_modules/,
use: [
{
loader: 'file-loader',
options: { outputPath: 'style/', name: '[name].min.css'}
},
'sass-loader'
]
}
],
},
});
Expand Down
Loading

0 comments on commit 99155da

Please sign in to comment.