According to the vue-loader' README.md file , I put the same code in my webpack.config.js , but there are not prefixes at all.
webpack.config.js
module.exports = {
entry: __dirname + '/app/entry.js',
output: {
path: __dirname + '/dist',
filename: 'bundle.js'
},
module: {
loaders: [{
test: /\.vue$/,
loader: 'vue'
},{
test: /\.js$/,
exclude: /node_modules/,
loader:'babel-loader'
},{
test: /\.(sass|scss)$/,
loader:'style!css!postcss!sass'
},{
test: /\.css$/,
loader:ExtractTextPlugin.extract('style-loader','css-loader?importLoaders=1')
// loader:'style!css'
},{
test: /\.(html|tpl)$/,
loader: 'html-loader'
},{
test: /\.(png|jpg|gif)$/,
loader: 'url-loader?limit=8192'
}]
},
vue:{
autoprefixer: {
browsers: ['last 2 versions']
}
},
plugins:[
new ExtractTextPlugin('/css/[name].css')
]
};
topBar.vue \