-
Notifications
You must be signed in to change notification settings - Fork 3
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
Production deployment #22
Comments
Might need to switch away from nunjucks in the long term. Currently webpack creates a hashed bundle file. html-webpack-plugin is the webpack plugin to use for getting this hashed bundle into html files, however the nunjucks-loader will not work with html-webpack-plugin. See this issue. |
Maybe html-webpack-plugin is heavier-weight than what we need. replace-hash looks at first glance like it could meet our needs. |
I gave replace-hash a shot and couldn't get it to work. It's not documented clearly and it's not working as expected. I can get it to grab the source html file and put it in a new location, but it doesn't modify the contents. And the destination location adds intermediate directories, like |
Roger. Don't worry about this issue, I'll take it.
|
Netlify does hashing for us. |
Check out create-react-app.
Need to integrate with our project the build script,
projectName/scripts/build.js
.See also
projectName/src/registerServiceWorker.js
.The text was updated successfully, but these errors were encountered: