cssnano installed and configured

This commit is contained in:
NikolaBorislavovHristov 2019-05-13 14:44:08 +03:00
parent a591efd6dc
commit ff9324b302
3 changed files with 1122 additions and 753 deletions

View file

@ -36,10 +36,11 @@
"@storybook/addon-links": "4.1.11",
"@storybook/addons": "4.1.11",
"@storybook/react": "4.1.11",
"autoprefixer": "9.5.1",
"babel-loader": "8.0.6",
"copy-webpack-plugin": "5.0.3",
"css-loader": "2.1.1",
"cssnano": "4.1.10",
"cssnano-preset-advanced": "4.0.7",
"html-webpack-plugin": "3.2.0",
"less": "3.9.0",
"less-loader": "5.0.0",

View file

@ -48,7 +48,26 @@ module.exports = {
options: {
ident: 'postcss-id',
plugins: () => [
require('autoprefixer')()
require('cssnano')({
preset: ['advanced', {
autoprefixer: true,
calc: false,
convertValues: false,
discardComments: {
removeAll: true,
},
discardOverridden: false,
mergeIdents: false,
normalizeDisplayValues: false,
normalizePositions: false,
normalizeRepeatStyle: false,
normalizeUnicode: false,
normalizeUrl: false,
reduceIdents: false,
reduceInitial: false,
zindex: false
}]
})
]
}
},
@ -57,7 +76,6 @@ module.exports = {
options: {
strictMath: true,
noIeCompat: true,
compress: true,
paths: [
path.resolve(__dirname, 'node_modules/stremio-colors'),
path.resolve(__dirname, 'src/common')

1850
yarn.lock

File diff suppressed because it is too large Load diff