var webpack = require('webpack'); var merge = require('webpack-merge'); var path = require('path'); var devConfig = require('./webpack.config.dev.js'); module.exports = merge(devConfig, { output: { path: path.join(__dirname, '../docs/dist'), publicPath: '/zanui/vue', filename: '[name].[hash:8].js' }, devtool: false, plugins: [ new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify(process.env.NODE_ENV) } }), new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false, drop_console: true }, output: { comments: false }, sourceMap: false }), new webpack.optimize.CommonsChunkPlugin({ name: 'vendor', minChunks: Infinity }) ] });