Skip to content

Commit 3e6d89b

Browse files
committed
add production test
1 parent 2688667 commit 3e6d89b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "microbundle --target node --format cjs --no-compress src/*.js",
99
"prepublishOnly": "npm run build",
1010
"dev": "karmatic watch --no-headless",
11-
"test": "npm run build && karmatic",
11+
"test": "npm run build && karmatic && NODE_ENV=production karmatic -p",
1212
"release": "npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
1313
},
1414
"eslintConfig": {
@@ -45,4 +45,4 @@
4545
"peerDependencies": {
4646
"webpack": "*"
4747
}
48-
}
48+
}

webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = function () {
2+
return {
3+
mode: process.env.NODE_ENV || 'development'
4+
};
5+
}

0 commit comments

Comments
 (0)