Commit a73cec78 authored by Evan You's avatar Evan You

add autoprefixer

parent 1fcdbdbc
...@@ -33,5 +33,12 @@ module.exports = { ...@@ -33,5 +33,12 @@ module.exports = {
} }
} }
] ]
},
vue: {
postcss: [
require('autoprefixer')({
browsers: ['last 3 versions']
})
]
} }
} }
...@@ -19,13 +19,11 @@ if (process.env.NODE_ENV === 'production') { ...@@ -19,13 +19,11 @@ if (process.env.NODE_ENV === 'production') {
// extract CSS into a single file so it's applied on initial render // extract CSS into a single file so it's applied on initial render
const ExtractTextPlugin = require('extract-text-webpack-plugin') const ExtractTextPlugin = require('extract-text-webpack-plugin')
config.vue = { config.vue.loaders = {
loaders: { stylus: ExtractTextPlugin.extract({
stylus: ExtractTextPlugin.extract({ loader: "css-loader!stylus-loader",
loader: "css-loader!stylus-loader", fallbackLoader: "vue-style-loader"
fallbackLoader: "vue-style-loader" })
})
}
} }
config.plugins.push( config.plugins.push(
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
"vuex-router-sync": "^3.0.0" "vuex-router-sync": "^3.0.0"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^6.4.0",
"babel-core": "^6.0.0", "babel-core": "^6.0.0",
"babel-loader": "^6.0.0", "babel-loader": "^6.0.0",
"babel-preset-es2015": "^6.13.2", "babel-preset-es2015": "^6.13.2",
......
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