This repository was archived by the owner on May 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 82
82
"babel-eslint" : " 10.0.2" ,
83
83
"babel-plugin-transform-react-remove-prop-types" : " ^0.4.24" ,
84
84
"babel-polyfill" : " ^6.26.0" ,
85
+ "cssnano" : " ^4.1.10" ,
85
86
"eslint" : " ^6.2.0" ,
86
87
"eslint-config-airbnb" : " ^18.0.1" ,
87
88
"eslint-config-prettier" : " ^6.1.0" ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import filesize from 'rollup-plugin-filesize';
5
5
import resolve from 'rollup-plugin-node-resolve' ;
6
6
import postcss from 'rollup-plugin-postcss' ;
7
7
import autoprefixer from 'autoprefixer' ;
8
+ import cssnano from 'cssnano' ;
8
9
import pkg from './package.json' ;
9
10
10
11
const root = process . platform === 'win32' ? path . resolve ( '/' ) : '/' ;
@@ -31,7 +32,7 @@ export default {
31
32
external : id =>
32
33
! id . startsWith ( '.' ) && ! id . startsWith ( root ) && ! id . includes ( 'style-inject' ) ,
33
34
plugins : [
34
- postcss ( { plugins : [ autoprefixer ] } ) ,
35
+ postcss ( { plugins : [ autoprefixer , cssnano ] } ) ,
35
36
babel ( {
36
37
exclude : 'node_modules/**' ,
37
38
runtimeHelpers : true
Original file line number Diff line number Diff line change @@ -2115,7 +2115,7 @@ cssnano-util-same-parent@^4.0.0:
2115
2115
resolved "https://registry.yarnpkg.com/cssnano-util-same-parent/-/cssnano-util-same-parent-4.0.1.tgz#574082fb2859d2db433855835d9a8456ea18bbf3"
2116
2116
integrity sha512-WcKx5OY+KoSIAxBW6UBBRay1U6vkYheCdjyVNDm85zt5K9mHoGOfsOsqIszfAqrQQFIIKgjh2+FDgIj/zsl21Q==
2117
2117
2118
- cssnano@^4.1.8 :
2118
+ cssnano@^4.1.10, cssnano@^4.1. 8 :
2119
2119
version "4.1.10"
2120
2120
resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-4.1.10.tgz#0ac41f0b13d13d465487e111b778d42da631b8b2"
2121
2121
integrity sha512-5wny+F6H4/8RgNlaqab4ktc3e0/blKutmq8yNlBFXA//nSFFAqAngjNVRzUvCgYROULmZZUoosL/KSoZo5aUaQ==
You can’t perform that action at this time.
0 commit comments