text: var path = require('path')
  var utils = require('./utils')
  var webpack = require('webpack')
  var config = require('../config')
  var merge = require('webpack-merge')
  var baseWebpackConfig = require('./webpack.base.conf')
  
  var env = config.build.env
  
  var webpackConfig = merge(baseWebpackConfig, {
  	devtool: config.build.productionSourceMap ? '#source-map' : false,
  	output: {
  		path: config.build.assetsRoot,
  		filename: '[name].js',
  	},
  	plugins: [
  		// http://vuejs.github.io/vue-loader/en/workflow/production.html
  		new webpack.DefinePlugin({
  			'process.env': env
  		}),
  	]
  })
  
  
  module.exports = webpackConfig
  