Skip to content

Commit 22453d0

Browse files
Create npm prepublish script that builds the bundles before publish
Build the unminified and minified client-side bundles before publish.
1 parent 6495a8e commit 22453d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"scripts": {
88
"build": "NODE_ENV=development webpack index.js dist/html-to-react.js",
99
"build-min": "NODE_ENV=production webpack -p index.js dist/html-to-react.min.js",
10+
"prepublish": "npm run build && npm run build-min",
1011
"test": "mocha",
1112
"lint": "eslint index.js \"lib/**\" \"test/**\"",
1213
"cover": "istanbul cover _mocha -- -R spec \"test/**/*\"",

0 commit comments

Comments
 (0)