mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 11:42: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/addon-links": "4.1.11",
|
||||||
"@storybook/addons": "4.1.11",
|
"@storybook/addons": "4.1.11",
|
||||||
"@storybook/react": "4.1.11",
|
"@storybook/react": "4.1.11",
|
||||||
"autoprefixer": "9.5.1",
|
|
||||||
"babel-loader": "8.0.6",
|
"babel-loader": "8.0.6",
|
||||||
"copy-webpack-plugin": "5.0.3",
|
"copy-webpack-plugin": "5.0.3",
|
||||||
"css-loader": "2.1.1",
|
"css-loader": "2.1.1",
|
||||||
|
"cssnano": "4.1.10",
|
||||||
|
"cssnano-preset-advanced": "4.0.7",
|
||||||
"html-webpack-plugin": "3.2.0",
|
"html-webpack-plugin": "3.2.0",
|
||||||
"less": "3.9.0",
|
"less": "3.9.0",
|
||||||
"less-loader": "5.0.0",
|
"less-loader": "5.0.0",
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,26 @@ module.exports = {
|
||||||
options: {
|
options: {
|
||||||
ident: 'postcss-id',
|
ident: 'postcss-id',
|
||||||
plugins: () => [
|
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: {
|
options: {
|
||||||
strictMath: true,
|
strictMath: true,
|
||||||
noIeCompat: true,
|
noIeCompat: true,
|
||||||
compress: true,
|
|
||||||
paths: [
|
paths: [
|
||||||
path.resolve(__dirname, 'node_modules/stremio-colors'),
|
path.resolve(__dirname, 'node_modules/stremio-colors'),
|
||||||
path.resolve(__dirname, 'src/common')
|
path.resolve(__dirname, 'src/common')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue