Skip to content

Commit c5c531c

Browse files
committed
Added bundle scripts to packagejson
1 parent aca29a8 commit c5c531c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"lint": "eslint \"*/**/*.{js,jsx}\"",
88
"test": "echo \"Error: no test specified\" && exit 1",
9-
"bundle_bg": "browserify src/browser/chrome/background.js -o src/browser/chrome/devtools_bundle/bg_bundle.js"
9+
"bundle_bg": "browserify src/browser/chrome/background.js -o src/browser/chrome/devtools_bundle/bg_bundle.js",
10+
"build": "npm run bundle_bg & npm run webpack --prefix ./src/app"
1011
},
1112
"repository": {
1213
"type": "git",

src/app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"start": "nodemon server/server.js",
88
"start:dev": "webpack-dev-server --mode development --open --hot",
9-
"build": "webpack --watch"
9+
"build": "webpack --watch",
10+
"webpack": "webpack"
1011
},
1112
"babel": {
1213
"presets": [

0 commit comments

Comments
 (0)