Skip to content

Commit

Permalink
Fixed build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
fbaiodias committed Nov 17, 2015
1 parent f00d09f commit 8900721
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ dev/

*.zip
*.swp

*.crx
*.pem
2 changes: 1 addition & 1 deletion chrome/manifest.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
"permissions": [
"http://localhost/"
],
"content_security_policy": "default-src 'self'; script-src 'self'; style-src * 'unsafe-inline'; img-src 'self' data:;"
"content_security_policy": "default-src 'self'; script-src 'self'; connect-src http://localhost:5001; style-src * 'unsafe-inline'; img-src 'self' data:;"
}
2 changes: 1 addition & 1 deletion chrome/views/background.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ doctype html

html
head
script(src=env == 'prod' ? '/js/background.bundle.js' : 'https://localhost:3000/js/background.bundle.js')
script(src=env == 'prod' ? '/background.bundle.js' : 'https://localhost:3000/js/background.bundle.js')
2 changes: 1 addition & 1 deletion chrome/views/popup.jade
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ html

body
#root(class='todoapp')
script(src=env == 'prod' ? '/js/popup.bundle.js' : 'https://localhost:3000/js/popup.bundle.js')
script(src=env == 'prod' ? '/popup.bundle.js' : 'https://localhost:3000/js/popup.bundle.js')
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"lint": "standard --verbose | snazzy",
"dev": "gulp",
"build": "BABEL_ENV=production gulp build",
"build": "npm run clean && BABEL_ENV=production gulp build",
"compress": "npm run build && gulp compress",
"clean": "rm -rf build/ && rm -rf dev/ && rm -f archive.zip"
},
Expand Down
2 changes: 1 addition & 1 deletion webpack/prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
background: [ path.join(__dirname, '../chrome/app/background/index') ]
},
output: {
path: path.join(__dirname, '../build/js'),
path: path.join(__dirname, '../build'),
filename: '[name].bundle.js',
chunkFilename: '[id].chunk.js'
},
Expand Down

0 comments on commit 8900721

Please sign in to comment.