mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
8ab135af55
Alpha 0.1.0
24 lines
664 B
JavaScript
24 lines
664 B
JavaScript
const webpack = require('webpack')
|
|
const base = require('./base.config')
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Webpack Server Config
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
module.exports = Object.assign({}, base, {
|
|
target: 'node',
|
|
devtool: false,
|
|
output: Object.assign({}, base.output, {
|
|
filename: 'server-bundle.js',
|
|
libraryTarget: 'commonjs2'
|
|
}),
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development'),
|
|
'process.env.VUE_ENV': '"server"',
|
|
'process.BROWSER': false
|
|
})
|
|
]
|
|
})
|