mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +00:00
deprecated vue-ssr-webpack-plugin in flavor of vue-server-renderer
This commit is contained in:
parent
c6eef59823
commit
8db3a22db9
@ -1,7 +1,7 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
import webpack from 'webpack'
|
import webpack from 'webpack'
|
||||||
import VueSSRPlugin from 'vue-ssr-webpack-plugin'
|
import VueSSRServerPlugin from 'vue-server-renderer/server-plugin'
|
||||||
import base from './base.config.js'
|
import base from './base.config.js'
|
||||||
import { each, uniq } from 'lodash'
|
import { each, uniq } from 'lodash'
|
||||||
import { existsSync, readFileSync } from 'fs'
|
import { existsSync, readFileSync } from 'fs'
|
||||||
@ -34,7 +34,7 @@ export default function () {
|
|||||||
hints: false
|
hints: false
|
||||||
},
|
},
|
||||||
plugins: (config.plugins || []).concat([
|
plugins: (config.plugins || []).concat([
|
||||||
new VueSSRPlugin({
|
new VueSSRServerPlugin({
|
||||||
filename: 'server-bundle.json'
|
filename: 'server-bundle.json'
|
||||||
}),
|
}),
|
||||||
new webpack.DefinePlugin(Object.assign(env, {
|
new webpack.DefinePlugin(Object.assign(env, {
|
||||||
|
@ -87,7 +87,6 @@
|
|||||||
"vue-router": "^2.4.0",
|
"vue-router": "^2.4.0",
|
||||||
"vue-server-renderer": "^2.3.0",
|
"vue-server-renderer": "^2.3.0",
|
||||||
"vue-ssr-html-stream": "^2.2.0",
|
"vue-ssr-html-stream": "^2.2.0",
|
||||||
"vue-ssr-webpack-plugin": "^3.0.0",
|
|
||||||
"vue-template-compiler": "^2.3.0",
|
"vue-template-compiler": "^2.3.0",
|
||||||
"vuex": "^2.3.0",
|
"vuex": "^2.3.0",
|
||||||
"webpack": "^2.4.1",
|
"webpack": "^2.4.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user