mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 15:50:32 +00:00
Upgrade to vue 2.1.0
This commit is contained in:
parent
57b55dc512
commit
6d86df8291
@ -55,7 +55,7 @@ const basePackage = `{
|
|||||||
|
|
||||||
const baseConfig = `module.exports = {
|
const baseConfig = `module.exports = {
|
||||||
// Nuxt.js configuration file
|
// Nuxt.js configuration file
|
||||||
// Please look at https://nuxtjs.org/docs/config-file
|
// Please look at https://nuxtjs.org/guide/configuration
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
data ({ req, error }) {
|
data ({ req }) {
|
||||||
return {
|
return {
|
||||||
name: req ? 'server' : 'client'
|
name: req ? 'server' : 'client'
|
||||||
}
|
}
|
||||||
|
@ -293,7 +293,6 @@ function webpackRunServer () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createRenderer (bundle) {
|
function createRenderer (bundle) {
|
||||||
process.env.VUE_ENV = (process.env.VUE_ENV ? process.env.VUE_ENV : 'server')
|
|
||||||
// Create bundle renderer to give a fresh context for every request
|
// Create bundle renderer to give a fresh context for every request
|
||||||
let cacheConfig = false
|
let cacheConfig = false
|
||||||
if (this.options.cache) {
|
if (this.options.cache) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nuxt",
|
"name": "nuxt",
|
||||||
"version": "0.6.7",
|
"version": "0.6.8",
|
||||||
"description": "A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)",
|
"description": "A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@ -39,11 +39,12 @@
|
|||||||
"serialize-javascript": "^1.3.0",
|
"serialize-javascript": "^1.3.0",
|
||||||
"serve-static": "^1.11.1",
|
"serve-static": "^1.11.1",
|
||||||
"url-loader": "^0.5.7",
|
"url-loader": "^0.5.7",
|
||||||
"vue": "^2.0.8",
|
"vue": "^2.1.0",
|
||||||
"vue-loader": "^9.9.5",
|
"vue-loader": "^10.0.0",
|
||||||
"vue-meta": "^0.4.4",
|
"vue-meta": "^0.4.4",
|
||||||
"vue-router": "^2.0.3",
|
"vue-router": "^2.0.3",
|
||||||
"vue-server-renderer": "^2.0.8",
|
"vue-server-renderer": "^2.1.0",
|
||||||
|
"vue-template-compiler": "^2.1.0",
|
||||||
"vuex": "^2.0.0",
|
"vuex": "^2.0.0",
|
||||||
"webpack": "2.1.0-beta.26",
|
"webpack": "2.1.0-beta.26",
|
||||||
"webpack-dev-middleware": "^1.8.4",
|
"webpack-dev-middleware": "^1.8.4",
|
||||||
|
Loading…
Reference in New Issue
Block a user