Fix autoprefix

This commit is contained in:
afc163 2016-03-09 11:50:11 +08:00
parent 3baf790341
commit b706a024c6
2 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,7 @@
"warning": "~2.1.0" "warning": "~2.1.0"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^6.3.3",
"babel-cli": "^6.2.0", "babel-cli": "^6.2.0",
"babel-core": "^6.2.1", "babel-core": "^6.2.1",
"babel-jest": "^6.0.1", "babel-jest": "^6.0.1",

View File

@ -2,6 +2,7 @@ var webpack = require('webpack');
var ExtractTextPlugin = require("extract-text-webpack-plugin"); var ExtractTextPlugin = require("extract-text-webpack-plugin");
var path = require('path'); var path = require('path');
var pkg = require('./package'); var pkg = require('./package');
var autoprefixer = require('autoprefixer');
var entry = {}; var entry = {};
entry['demo'] = ['./scripts/demo.js', 'webpack-hot-middleware/client']; entry['demo'] = ['./scripts/demo.js', 'webpack-hot-middleware/client'];
@ -53,6 +54,8 @@ module.exports = {
}] }]
}, },
postcss: [autoprefixer],
plugins: [ plugins: [
new ExtractTextPlugin('[name].css'), new ExtractTextPlugin('[name].css'),
new webpack.optimize.OccurenceOrderPlugin(), new webpack.optimize.OccurenceOrderPlugin(),