撒科打诨
需要借助于webpack的插件extract-text-webpack-plugin。你可以研究一下。给你个webpack配置文件的参考var path = require('path')var webpack = require('webpack')var ExtractTextPlugin = require('extract-text-webpack-plugin')module.exports = { target: 'atom', entry: { app: './app/app.js', }, output: { path: './build', filename: '[name].js', }, module: { loaders: [{ test: /\.vue$/, loader: 'vue' }, { test: /\.css$/, loaders: ExtractTextPlugin.extract("style", "css") }, { test: /\.js$/, exclude: /(node_modules|bower_components)/, loader: 'babel' }, { test: /\.json$/, loader: 'json' }] }, plugins: [ new ExtractTextPlugin('app.css') ], vue: { loaders: { css: ExtractTextPlugin.extract("css") } }}提取出来的文件就是app.css