naive-ui/playground/ssr/webpack.config.server.js
2021-06-02 14:37:37 +08:00

14 lines
244 B
JavaScript

module.exports = {
mode: 'development',
externalsPresets: { node: true },
externals: [/^[@/a-z\-0-9]+$/],
target: 'node',
entry: './server.js',
output: {
filename: 'server.js',
library: {
type: 'commonjs2'
}
}
}