mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
cssnano installed and configured
This commit is contained in:
parent
a591efd6dc
commit
ff9324b302
3 changed files with 1122 additions and 753 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue