-
Notifications
You must be signed in to change notification settings - Fork 292
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
Conversation
Current coverage is 100% (diff: 100%)@@ 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
|
There was a problem hiding this 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'); |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use path.join
here.
Also, please, add |
sure. Done... |
Thank you ❤️ 👍 |
…ers (#7) * Implemented cache busting for better experience for developers and users * Cleaned a bit * Added html-webpack-plugin to package.json
Added cache busting so that generated js filenames are now unique an automatically added to index.html