Skip to content

Commit 224add7

Browse files
committed
Use csso the other plugin re-ordered css which broke the design.
1 parent e1b5e34 commit 224add7

File tree

5 files changed

+30
-4
lines changed

5 files changed

+30
-4
lines changed

docs/dist/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"glob-all": "^3.1.0",
1212
"optimize-css-assets-webpack-plugin": "^4.0.0",
1313
"postcss": "^6.0.21",
14+
"postcss-csso": "^3.0.0",
1415
"postcss-import": "^11.1.0",
1516
"postcss-loader": "^2.1.3",
1617
"purgecss-webpack-plugin": "^0.22.0",

docs/postcss.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
plugins: [
3-
require("postcss-import"),
4-
require('tailwindcss')('./tailwind.js')
3+
require('postcss-import'),
4+
require('tailwindcss')('./tailwind.js'),
5+
require('postcss-csso')
56
]
67
};

docs/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class TailwindExtractor {
1212

1313
let plugins = [
1414
new ExtractTextPlugin('styles.css'),
15-
new OptimizeCssAssetsPlugin(),
15+
// new OptimizeCssAssetsPlugin(),
1616
];
1717

1818
let isProd = process.env.NODE_ENV === 'production';

0 commit comments

Comments
 (0)