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

[js] version js file names using webpack chunkhash #2951

Merged
merged 8 commits into from
Jun 13, 2017

Conversation

ascott
Copy link
Contributor

@ascott ascott commented Jun 12, 2017

this pr introduces automatic js filename versioning so we don't have to rely on updating the package.json version to make sure changed js files get their cache busted.

@mistercrunch @graceguo-supercat

@ascott ascott requested a review from mistercrunch June 12, 2017 19:55
@ascott ascott force-pushed the alanna-webpack-file-naming branch from 3b6e09d to f8b4c96 Compare June 12, 2017 20:01
@mistercrunch
Copy link
Member

Very nice. Happy to see this! LGTM

@ascott ascott force-pushed the alanna-webpack-file-naming branch from 52328fb to 9412978 Compare June 13, 2017 03:40
@ascott ascott merged commit e5151cb into apache:master Jun 13, 2017
@ascott ascott deleted the alanna-webpack-file-naming branch June 13, 2017 16:44
graceguo-supercat pushed a commit to graceguo-supercat/superset that referenced this pull request Jun 13, 2017
* get compiled js file names

* make manifest available as template var

* use script src directly to avoid flash of unstyled content in the case of csstheme.js

* linting

* attempt to fix tests

* exception

* print the path when no manifest file found

* handle case when manifest.json is not present for some reason, or in the case of tests
@yidazh
Copy link

yidazh commented Aug 17, 2017

In dev mode, the manifest.json changes but will not be reloaded after js files changing, so the pages remain the same. Utilizing webpack chunkhash depending on the NODE_ENV will be prefered. Like this:

process.env.NODE_ENV === 'dev' ? '[name].entry.js' : '[name].[chunkhash].entry.js'

@mistercrunch
Copy link
Member

I don't have this problem in dev mode. It was an issue inn the master branch for a little while recently but it's fixed now. Can you rebase?

@yidazh
Copy link

yidazh commented Aug 18, 2017

@mistercrunch Thanks for your reply. It works. Great job.

@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.18.5 labels Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.18.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants