Skip to content

Commit

Permalink
add a dev build script for browser-basedpyright
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Sep 18, 2024
1 parent 03e7502 commit d640a50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/browser-pyright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"scripts": {
"build": "webpack --mode production --progress",
"build:dev": "webpack --mode development --progress",
"clean": "shx rm -rf ./dist ./out LICENSE.txt",
"prepack": "npm run clean && shx cp ../../LICENSE.txt . && npm run build",
"webpack": "webpack --mode development --progress"
Expand Down
3 changes: 3 additions & 0 deletions packages/browser-pyright/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module.exports = async (_, { mode }) => {
entry: {
pyright: './src/worker.ts',
},
optimization: {
minimize: mode === 'production',
},
output: {
filename: '[name].worker.js',
path: outPath,
Expand Down

0 comments on commit d640a50

Please sign in to comment.