Skip to content

Commit

Permalink
chore: webpack build mode for dist
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 7, 2021
1 parent 517dc65 commit 5fe1488
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"gh:release": "conventional-github-releaser -p angular",
"build": "rimraf dist && nr i18n:build && nr main:build && nr editor:build && esno scripts/post-build.ts",
"dev": "run-p *:dev",
"main:build": "cross-env NODE_ENV=production webpack --mode development",
"main:build": "cross-env NODE_ENV=production webpack --mode production",
"main:dev": "webpack --mode development --watch --info-verbosity verbose",
"editor:build": "parcel build src/webview/src/index.html --out-dir dist/editor",
"editor:dev": "nodemon -w src/webview/src -e js,ts,vue,html --exec \"nr editor:build\"",
Expand Down
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ const { TsconfigPathsPlugin } = require('tsconfig-paths-webpack-plugin')
/** @type {import('webpack').Configuration} */
const config = {
target: 'node',

optimization: {
minimize: false
},
entry: './src/extension.ts',
output: {
path: path.resolve(__dirname, 'dist'),
Expand Down

0 comments on commit 5fe1488

Please sign in to comment.