mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-05 05:27:59 +08:00
25 lines
456 B
JavaScript
25 lines
456 B
JavaScript
var path = require('path')
|
|
var alias = require('./alias')
|
|
|
|
module.exports = {
|
|
entry: path.resolve(__dirname, 'ssr.dev.entry.js'),
|
|
target: 'node',
|
|
output: {
|
|
path: path.resolve(__dirname, '../dist'),
|
|
filename: 'server-renderer.js',
|
|
libraryTarget: 'commonjs2'
|
|
},
|
|
resolve: {
|
|
alias: alias
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.js/,
|
|
loader: 'babel!eslint',
|
|
exclude: /node_modules/
|
|
}
|
|
]
|
|
}
|
|
}
|