Skip to content

Commit

Permalink
feat: update webpack template devtool config
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Dec 22, 2024
1 parent ecde405 commit ae61fcc
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"version": "1.6.0",
"version": "1.6.1",
"type": "module",
"scripts": {
"build": "rollup -c",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-gopeed-ext/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-gopeed-ext",
"version": "1.6.0",
"version": "1.6.1",
"keywords": [
"gopeed"
],
Expand Down
4 changes: 2 additions & 2 deletions packages/create-gopeed-ext/templates/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"gopeed": "^1.6.0",
"gopeed": "^1.6.1",
"gopeed-polyfill-webpack-plugin": "^1.0.6",
"prettier": "^3.0.3",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import GopeedPolyfillPlugin from 'gopeed-polyfill-webpack-plugin';

const __dirname = fileURLToPath(import.meta.url);

export default {
export default (_, argv) => ({
entry: './src/index.js',
output: {
filename: 'index.js',
path: path.resolve(__dirname, '../dist'),
},
devtool: false,
devtool: argv.mode === 'production' ? undefined : false,
plugins: [new GopeedPolyfillPlugin()],
module: {
rules: [
Expand All @@ -22,4 +22,4 @@ export default {
},
],
},
};
});
2 changes: 1 addition & 1 deletion packages/gopeed-rest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gopeed/rest",
"version": "1.6.0",
"version": "1.6.1",
"description": "",
"main": "dist/index.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gopeed-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gopeed/types",
"version": "1.6.0",
"version": "1.6.1",
"description": "",
"main": "dist/index.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gopeed/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gopeed",
"version": "1.6.0",
"version": "1.6.1",
"description": "",
"main": "index.js",
"type": "module",
Expand Down

0 comments on commit ae61fcc

Please sign in to comment.