Skip to content

Commit 2b60a99

Browse files
committed
Add resource caching
1 parent 6a59cec commit 2b60a99

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "3d-contributions",
2+
"name": "git-trophy",
33
"version": "1.0.0",
44
"description": "🖨 3D Print Your Github Contributions Chart",
55
"main": "webpack.config.js",
@@ -10,19 +10,19 @@
1010
"lint": "eslint src/",
1111
"lint:fix": "eslint --fix src/",
1212
"profile": "webpack --profile --json > webpack-stats.json",
13-
"upload": "s3-deploy ./public/** ./public/*/** ./public/img/*/** --cwd ./public/ --bucket gittrophy.com",
13+
"upload": "s3-deploy ./public/** ./public/*/** ./public/img/*/** --cwd ./public/ --bucket gittrophy.com --cache 604800",
1414
"deploy": "npm run build:production && npm run upload"
1515
},
1616
"repository": {
1717
"type": "git",
18-
"url": "git+https://github.com/bcongdon/3d-contributions.git"
18+
"url": "git+https://github.com/bcongdon/git-trophy.git"
1919
},
2020
"author": "Benjamin Congdon",
2121
"license": "MIT",
2222
"bugs": {
23-
"url": "https://github.com/bcongdon/3d-contributions/issues"
23+
"url": "https://github.com/bcongdon/git-trophy/issues"
2424
},
25-
"homepage": "https://github.com/bcongdon/3d-contributions#readme",
25+
"homepage": "https://github.com/bcongdon/git-trophy#readme",
2626
"dependencies": {
2727
"axios": "^0.16.2",
2828
"debounce": "^1.0.2",

webpack.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ var google_analytics = process.env.NODE_ENV === 'production' ? fs.readFileSync('
1010

1111
var config = {
1212
entry: APP_DIR + '/index.js',
13-
output: {
14-
path: BUILD_DIR,
15-
filename: 'bundle.js'
16-
},
1713
module: {
1814
loaders: [
1915
{
@@ -33,6 +29,10 @@ var config = {
3329
filename: path.resolve(__dirname, 'public', 'index.html')
3430
})
3531
],
32+
output: {
33+
path: BUILD_DIR,
34+
filename: '[name].[chunkhash].js',
35+
},
3636
devServer: {
3737
contentBase: path.join(__dirname, "public"),
3838
publicPath: "/dist/",

0 commit comments

Comments
 (0)