var path = require("path")
var vue = require("vue-loader")
var webpack = require("webpack")
var postcss = require("postcss-loader")
var autoprefixer = require("autoprefixer")
var ExtractTextPlugin = require("extract-text-webpack-plugin")

module.exports = {
	entry: "./src/app.js",
	output: {
		path: "D:/wamp/www/wanba/openplatform/assets/",
		filename: "app.js",
		publicPath: "/assets/"
	},
	module: {
		loaders: [
			{
				test: /\.vue$/,
				loader: "vue"
			},
			{
				test: /\.js$/,
				exclude: /node_modules/,
				loader: "babel"
			},
			{
				test: /\.css$/,
				loader: ExtractTextPlugin.extract("style-loader", "css!postcss")
			},
			{
				test: /\.(png|jpg|gif)$/,
				loader: "url-loader?limit=8192"
			}
		]
	},
	babel: {
		presets: ["es2015", "stage-3"],
		plugins: ["transform-runtime"]
	},
	postcss: [
		autoprefixer({
			browsers: "IE 10"
		})
	],
	plugins: [
		new ExtractTextPlugin("[contenthash].css")
	],
	externals: {
		Vue: "Vue"
	},
	devtool: "source-map"
}

import precss from "precss"
import autoprefixer from "autoprefixer"
import ExtractTextPlugin from "extract-text-webpack-plugin"

export default {
	entry: "./src/app.js",
	output: {
		path: "",
		filename: "build.js",
		publicPath: ""
	},
	module: {
		loaders: [
			{
				test: /\.vue$/,
				loader: "vue"
			},
			{
				test: /\.js$/,
				exclude: /node_modules/,
				loader: "babel"
			},
			{
				test: /\.css$/,
				loader: ExtractTextPlugin.extract("style-loader", "css!postcss")
			},
			{
				test: /\.(png|jpg|gif|ttf|svg|ico)$/,
				loader: "url-loader",
				query: {
					name: "[hash].[ext]",
					limit: 10000,
				}
			}
		]
	},
	postcss: [
		precss,
		autoprefixer({
			browsers: "> 5%"
		})
	],
	plugins: [
		new ExtractTextPlugin("mobile.css")
	],
	resolve: {
		extensions: ["", ".js", ".vue", "css"]
	},
	externals: {
		vue: "Vue"
	},
	devtool: "source-map"
}

Update webpack.config.js