Skip to content
This repository has been archived by the owner on Dec 9, 2019. It is now read-only.

Commit

Permalink
feat: Add CSSNext and remove autoprefixer (included in cssnext)
Browse files Browse the repository at this point in the history
Close #23
  • Loading branch information
equinusocio committed Mar 9, 2017
1 parent 7e74458 commit 629a946
Show file tree
Hide file tree
Showing 4 changed files with 310 additions and 33 deletions.
10 changes: 7 additions & 3 deletions build_utils/postcss-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ const replace = require('replace-in-file')
const chokidar = require('chokidar')

const postcss = require('postcss')
const autoprefixer = require('autoprefixer')
const cssnext = require('postcss-cssnext')
const cssnano = require('cssnano')
const postcssReporter = require('postcss-reporter')

const postcssPlugins = [
autoprefixer,
cssnano(),
cssnext({
browsers: ['last 2 version']
}),
cssnano({
autoprefixer: false
}),
postcssReporter({
filter: () => true,
clearReportedMessages: true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
]
},
"devDependencies": {
"autoprefixer": "^6.7.6",
"babel-core": "^6.23.1",
"babel-loader": "^6.3.2",
"babel-preset-es2015": "^6.22.0",
Expand All @@ -30,6 +29,7 @@
"cssnano": "^3.10.0",
"fs-extra": "^2.0.0",
"postcss": "^5.2.15",
"postcss-cssnext": "^2.9.0",
"postcss-reporter": "^3.0.0",
"replace-in-file": "^2.4.1",
"stylelint-config-standard": "^16.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/app/style-module.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<dom-module id="style-module">
<template>
<style>
div,div.ciao{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:red}
div,div.ciao{display:-ms-flexbox;display:flex;background-color:red}
</style>
</template>
</dom-module>
Loading

0 comments on commit 629a946

Please sign in to comment.