Commit d3cfdc6d authored by Marc Mautz's avatar Marc Mautz

fixed & added "postcss" config and "autoprefixer" settings

parent e08758ea
...@@ -4,6 +4,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin') ...@@ -4,6 +4,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin')
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin') const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const { resolve } = require('path') const { resolve } = require('path')
const autoprefixer = require('autoprefixer')
const config = { const config = {
output: { output: {
...@@ -23,7 +24,15 @@ const config = { ...@@ -23,7 +24,15 @@ const config = {
loader: 'vue-loader', loader: 'vue-loader',
options: { options: {
extractCSS: true, extractCSS: true,
cssSourceMap: true cssSourceMap: true,
postcss: [
autoprefixer({browsers: [
'> 0.3%',
'last 7 versions',
'Android >= 4',
'Firefox >= 20'
]})
],
} }
}, },
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment