Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented cache busting for better experience for developers and users #7

Merged
merged 3 commits into from
Oct 26, 2016

Conversation

prabhatsharma
Copy link
Contributor

Added cache busting so that generated js filenames are now unique an automatically added to index.html

@codecov-io
Copy link

codecov-io commented Oct 26, 2016

Current coverage is 100% (diff: 100%)

Merging #7 into master will not change coverage

@@           master    #7   diff @@
===================================
  Files          29    29          
  Lines         187   187          
  Methods        32    32          
  Messages        0     0          
  Branches       48    48          
===================================
  Hits          187   187          
  Misses          0     0          
  Partials        0     0          

Powered by Codecov. Last update 6f2e42d...080f4af

Copy link
Owner

@diegohaz diegohaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much. I requested just a few changes.

@@ -4,6 +4,7 @@ var webpack = require('webpack')
var ip = process.env.IP || '0.0.0.0'
var port = process.env.PORT || 3000
var DEBUG = process.env.NODE_ENV !== 'production'
var HtmlWebpackPlugin = require('html-webpack-plugin');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, place this line at the top (after other requires) and remove the semicolon.

}),
new HtmlWebpackPlugin({
filename: 'index.html',
template: __dirname + '/public/index.html',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use path.join here.

@diegohaz
Copy link
Owner

Also, please, add html-webpack-plugin to the dev dependencies in package.json for those who don't use yarn.

@prabhatsharma
Copy link
Contributor Author

sure. Done...

@diegohaz diegohaz merged commit e57286a into diegohaz:master Oct 26, 2016
@diegohaz
Copy link
Owner

Thank you ❤️ 👍

@prabhatsharma prabhatsharma deleted the hash branch October 26, 2016 13:07
diegohaz pushed a commit that referenced this pull request Oct 26, 2016
…ers (#7)

* Implemented cache busting for better experience for developers and users

* Cleaned a bit

* Added html-webpack-plugin to package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants