vue3-server-plugin
v1.0.1
Published
Server plugin for server bundle creation
Downloads
1
Maintainers
Readme
Installation
npm i --save-dev vue3-server-plugin
Features
- webpack 5
- vue3
- source-map
Usage
const merge = require('webpack-merge')
const nodeExternals = require('webpack-node-externals')
const baseConfig = require('./webpack.base.config.js')
const VueSSRServerPlugin = require('vue3-server-plugin')
module.exports = merge(baseConfig, {
entry: '/path/to/entry-server.js',
target: 'node',
devtool: 'source-map',
output: {
libraryTarget: 'commonjs2'
},
externals: nodeExternals({
whitelist: /\.css$/
}),
plugins: [
new VueSSRServerPlugin()
]
})