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

Commit

Permalink
feat: Add style minifation for style-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
equinusocio committed Mar 5, 2017
1 parent 34b6055 commit 73e112f
Show file tree
Hide file tree
Showing 4 changed files with 453 additions and 24 deletions.
4 changes: 3 additions & 1 deletion build_utils/postcss-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ const chokidar = require('chokidar')

const postcss = require('postcss')
const autoprefixer = require('autoprefixer')
const cssnano = require('cssnano');

const postcssPlugins = [
autoprefixer
autoprefixer,
cssnano()
]
// const postcssOptions = {}
// const filterType = /^text\/css$/
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"babel-loader": "^6.3.2",
"babel-preset-es2015": "^6.22.0",
"chokidar": "^1.6.1",
"cssnano": "^3.10.0",
"fs-extra": "^2.0.0",
"postcss": "^5.2.15",
"replace-in-file": "^2.4.1",
Expand Down
16 changes: 1 addition & 15 deletions src/components/app/style-module.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
<dom-module id="style-module">
<template>
<style>

div {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
background-color: red;
}

div.ciao {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
background-color: red;
}

div,div.ciao{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:red}
</style>
</template>
</dom-module>
Loading

0 comments on commit 73e112f

Please sign in to comment.