1.0.1 • Published 4 years ago

vue3-server-plugin v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

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()
  ]
})