vuetifyjs / webpack-ssr

Vuetify Webpack SSR Template
https://vuetifyjs.com/overview
62 stars 28 forks source link

/dist/** files doesn't have hashes in filename - cache problem #9

Closed SystemZ closed 7 years ago

SystemZ commented 7 years ago

Hi, I'm not expert on webpack but I see files that change constantly without name change which causes trouble for deployment with heavy caching.

Current filenames: app.js vendor.js manifest.js

Screencap from npm run dev but for npm run build is identical.

screenshot from 2017-02-08 03-20-23

How can I fix it in webpack config?

Expected filename styles: app.Y5ZjZjT5Fd.js vendor.YC3mzY.js manifest.2fcr4jY.js

johnleider commented 7 years ago

Does this relate to your issue? https://github.com/vuetifyjs/vuetify/issues/40

SystemZ commented 7 years ago

Sorry for trouble, it was my fault. Work at night is problematic.

server.js didn't see my env staging as production, but as dev, so it was serving wrongly.

For people with similar problem, when you are using more than dev and prod envs, make sure these lines are ok: https://github.com/lvlup-pro/spawn-frontend-material/blob/d4e91a517890d83c8e82a2d63ad169ab09d0207b/server.js#L2

https://github.com/lvlup-pro/spawn-frontend-material/blob/d4e91a517890d83c8e82a2d63ad169ab09d0207b/server.js#L17