Skip to content

Commit

Permalink
Merge pull request #6 from Yaty/dev
Browse files Browse the repository at this point in the history
v1.0.0
  • Loading branch information
Yaty authored Sep 17, 2017
2 parents 3dc68c5 + 6fe4fac commit f6c25b0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
9 changes: 8 additions & 1 deletion build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ 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-minified')
var PrerenderSpaPlugin = require('prerender-spa-plugin')

var env = process.env.NODE_ENV === 'testing'
? require('../config/test.env')
Expand Down Expand Up @@ -107,7 +108,13 @@ var webpackConfig = merge(baseWebpackConfig, {
staticFileGlobs: ['dist/**/*.{js,html,css}'],
minify: true,
stripPrefix: 'dist/'
})
}),
new PrerenderSpaPlugin(
// Path to compiled app
path.join(__dirname, '../dist'),
// List of endpoints you wish to prerender
[ '/' ]
)
]
})

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"optimize-css-assets-webpack-plugin": "^2.0.0",
"ora": "^1.2.0",
"phantomjs-prebuilt": "^2.1.14",
"prerender-spa-plugin": "^2.1.0",
"rimraf": "^2.6.0",
"sass-loader": "^6.0.6",
"selenium-server": "^3.0.1",
Expand Down
3 changes: 0 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,3 @@ new Vue({
template: '<App/>',
components: { App }
})

// TODO Prerendering : https://github.com/vuejs-templates/pwa/blob/bcf1b27e12637dfef4c5b18ae9af1ce1a95449ca/docs/prerender.md
// TODO Checklist : https://developers.google.com/web/progressive-web-apps/checklist
Binary file modified static/img/photo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f6c25b0

Please sign in to comment.