Skip to content

Commit 581f181

Browse files
authored
Merge pull request #1172 from swagger-api/swagger-js/add-build-dev
add `npm run build-dev` target
2 parents 1e69a80 + 97c748d commit 581f181

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ npm run test # run test
279279
npm run test:watch # run test with change watching
280280
npm run lint # run lint
281281
npm run build # package to release
282+
npm run build-dev # package with non-minified dist/index.js (for debugging)
282283
npm run build-bundle # build browser version available at .../browser
283284
```
284285

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"scripts": {
1919
"build": "cross-env NODE_ENV=production webpack -p --config ./webpack.config.js",
20+
"build-dev": "cross-env NODE_ENV=development webpack --config ./webpack.config.js",
2021
"build-bundle": "cross-env NODE_ENV=production webpack -p --config ./webpack.bundle.config.js",
2122
"watch": "webpack --config webpack.config.js --watch --progress",
2223
"test": "npm run just-test && npm run lint",

0 commit comments

Comments
 (0)