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

minify service worker script before html inlining (#59) #61

Merged
merged 1 commit into from
Aug 4, 2017

Conversation

anubhav7495
Copy link
Collaborator

I have added the solution to minify the service-worker-prod.js before inlining in index.html.

The approach works for me in production here: hnpwa-vue

Requesting reviews.
Thanks.

@anubhav7495
Copy link
Collaborator Author

@addyosmani Can you please take a look at this?

@addyosmani addyosmani merged commit 1db2857 into vuejs-templates:master Aug 4, 2017
@addyosmani
Copy link
Collaborator

@anubhav7495 Btw, just in case you might be interested in helping out with this repo too I've added you as a collaborator to it :)

@@ -10,6 +10,7 @@ var HtmlWebpackPlugin = require('html-webpack-plugin')
var ExtractTextPlugin = require('extract-text-webpack-plugin')
var OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
var SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin')
var loadMinified = require('./load-minfied')
Copy link

@Gomah Gomah Aug 4, 2017

Choose a reason for hiding this comment

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

@anubhav7495 Typo here ☝️

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks. I will push a fix immediately.

@anubhav7495 anubhav7495 deleted the inline-sw-minify branch August 4, 2017 01:30
@anubhav7495
Copy link
Collaborator Author

anubhav7495 commented Aug 4, 2017

@addyosmani Thanks.
@Gomah PR for Typo Fix: #67

I have merged this PR because npm run build was failing.

@addyosmani
Copy link
Collaborator

Cheers, @anubhav7495!

frandiox pushed a commit to OnsenUI/vue-pwa-webpack that referenced this pull request Oct 13, 2017
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